I would like to place a TinyMCE window on a page, pass text/HTML to it, allow it to be edited, and finally return the edits to MySQL. Is this possible? If not is there any other method of doing something like this such as a different WYSIWYG HTML editor module?
P.S. Ultimately I want to place this in the change settings template in the FrontEnd Users/CGDirectory Modules. I need an editor that is bigger than a single line and is capable of at least simple HTML (italics, bold, etc...).
Thanks
TinyMCE tag???
TinyMCE tag???
Last edited by clm314159 on Fri Oct 08, 2010 7:24 pm, edited 1 time in total.
Re: TinyMCE tag???
Add something like this to your template:
Nullig
Code: Select all
<__script__ language="javascript" type="text/javascript" src="modules/TinyMCE/tinymce/jscripts/tiny_mce/tiny_mce.js"></__script>
<__script__ language="javascript" type="text/javascript">
{literal}
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "paste",
theme_advanced_buttons1 : "bold,italic,underline,separator,undo,redo,separator,cut,pastetext,separator",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
paste_text_use_dialog : true,
forced_root_block : false,
force_br_newlines : true,
force_p_newlines : false,
entity_encoding : "raw" })
{/literal}
</__script>