I have a TinyMCE component in one of my pages and I am trying to remove the
"Path:" toolbar at the bottom. I have noticed that the init method renders
on my page twice. I only have one textarea on my page and I am adding a
custom TinyMceBehavior to it. I am trying to disable the visualaid button(i
assume that is how you remove the Path: at the bottom). On one of the init
methods rendered it has that button disabled and on the other one it
doesn't. I wonder if that could be causing it. Here is part of the html
rendered:
tinyMCE.init({
mode : "specific_textareas",
editor_selector : "70fa4bd0-497a-4eb3-8de5-a3fbc13bedf3",
theme : "advanced",
language : "en",
plugins : "contextmenu, save, paste, searchreplace, insertdatetime,
preview, zoom, table, emotions, iespell, flash, print, directionality,
fullscreen",
theme_advanced_buttons1_add_before : "save, newdocument, separator",
theme_advanced_buttons1_add : "fontselect, fontsizeselect",
theme_advanced_buttons2_add_before: "cut, copy, paste, pastetext,
pasteword, separator, search, replace, separator",
theme_advanced_buttons2_add : "separator, inserttime, insertdate,
separator, preview, zoom, separator, forecolor, backcolor",
theme_advanced_buttons3_add_before : "tablecontrols",
theme_advanced_buttons3_add : "emotions, iespell, flash, separator,
print,
separator, ltr, rtl, separator, fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_statusbar_location : "bottom",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
plugin_insertdate_timeFormat : "Time: %H:%M",
plugin_insertdate_dateFormat : "Date: %m-%d-%Y",
fullpage_default_xml_pi : "false"
});
/*-->]]>*/</script>
<script type="text/javascript" id="init"><!--/*--><![CDATA[/*><!--*/
tinyMCE.init({
mode : "specific_textareas",
editor_selector : "679c2b60-3c42-47e0-986e-3d653f7a28d6",
theme : "advanced",
language : "en",
theme_advanced_disable : "styleselect, sub, sup, charmap, image, anchor,
help, code, link, unlink, formatselect, bullist, numlist, indent, outdent,
undo, redo, cleanup, hr, visualaid, separator, removeformat",
theme_advanced_buttons1_add : "bullist, numlist",
theme_advanced_toolbar_location : "top",
theme_advanced_statusbar_location : "bottom",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : true
});
Could someone please help?
Thanks,
Josh
--
View this message in context:
http://www.nabble.com/TinyMCE-init-method-rendering-twice-tp20901160p20901160.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]