I have created a datatype from a user control that includes a rich text editor. When the rich text editor gets displayed it has all the toolbox included unlike the standard rich text editor that has its toolbox in the page header.
Is there a setting on the richtext editor that prevents it displaying in this manner ?
you can use the tiny MCE Rich Text Editor in your control or aspx custom page using this code in .cs file which can add TinyMCE RTE in your contol or page via code.
thirdTab.Menu.NewElement("div", "umbTinymceMenu_" + _tinymce.ClientID, "tinymceMenuBar", 0); // adds to menu bar
}
or go to the search and find " using RTE in custom section "
when you use the tinyMCE webcontrol ,, it will add the control to web page but it will change the id of toolbar which couse the problem in the rendering the toolbar in the header pane.
this code render the toolbar in main header pane which is exaclty the same as umbraco RTE.
Datatype containing a Rich Text Editor
I have created a datatype from a user control that includes a rich text editor. When the rich text editor gets displayed it has all the toolbox included unlike the standard rich text editor that has its toolbox in the page header.
Is there a setting on the richtext editor that prevents it displaying in this manner ?
I would have a look and the CSS styles that get used for the standard RTE (view source), you'll most likey need these for your custom datatype.
Rich
Did you make any progress with this Roger? I have exactly the same question, I've added the MCE webcontrol to my datatype i..e
and can't get any control over the toolbar
Hi jim and Roger,
you can use the tiny MCE Rich Text Editor in your control or aspx custom page using this code in .cs file which can add TinyMCE RTE in your contol or page via code.
private umbraco.editorControls.tinyMCE3.TinyMCE _tinymce = null;
protected void Page_Init(object sender, EventArgs e)
{
var thirdTab = Tab.NewTabPage("Third TinyMCE");
thirdTab.Controls.Add(Pane3);
DataTypeDefinition d = DataTypeDefinition.GetDataTypeDefinition(-87);
_tinymce = (umbraco.editorControls.tinyMCE3.TinyMCE)d.DataType.DataEditor;
_tinymce.ID = "T1";
Pane3.Controls.Add(_tinymce);
thirdTab.Menu.NewElement("div", "umbTinymceMenu_" + _tinymce.ClientID, "tinymceMenuBar", 0); // adds to menu bar
}
or go to the search and find " using RTE in custom section "
when you use the tinyMCE webcontrol ,, it will add the control to web page but it will change the id of toolbar which couse the problem in the rendering the toolbar in the header pane.
this code render the toolbar in main header pane which is exaclty the same as umbraco RTE.
Hope this will help ...
Cheers
is working on a reply...