Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pasang Tamang 258 posts 458 karma points
    Aug 26, 2011 @ 10:44
    Pasang Tamang
    0

    Umbraco Richtext Editior in a user control

    Hi all

    I'm trying to render Umbraco Richtext Editior in a user control. But its not rendering anything. Here is my code sample

    html :<asp:PlaceHolder ID="plcs" runat="server"></asp:PlaceHolder>
                DataTypeDefinition d = DataTypeDefinition.GetDataTypeDefinition(-87);
                _tinymce
    = (umbraco.editorControls.tinyMCE3.TinyMCE)d.DataType.DataEditor;

               
    if (_tinymce != null)
               
    {
                    umbraco
    .uicontrols.TabView tabview = (umbraco.uicontrols.TabView)FindControlRecursive(this.Page.Master, "TabView1");
                   
    if (_tinymce.config["umbraco_toolbar_id"] != null)
                        _tinymce
    .config.Remove("umbraco_toolbar_id");
                    _tinymce
    .config.Add("umbraco_toolbar_id", string.Format("{0}_tab01layer_menu_sl", tabview.ClientID));
               
    }
                plcs
    .Controls.Add(_tinymce);

    Plz. anyone help me what I'm missing in my code.

    Thanks

    Pnima

Please Sign in or register to post replies

Write your reply to:

Draft