TinyMCE tag???

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
clm314159
Forum Members
Forum Members
Posts: 17
Joined: Wed Sep 01, 2010 5:29 pm

TinyMCE tag???

Post by clm314159 »

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
Last edited by clm314159 on Fri Oct 08, 2010 7:24 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: TinyMCE tag???

Post by Nullig »

Add something like this to your template:

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>
Nullig
Locked

Return to “CMSMS Core”