$editor->display() <b>must<b> also be the first function called on the editor if you wish to use specific parameters.

+

<b>For a complete list of parameters that can be passed to the TinyMCE editor, see the Joomla source file:</b> ''/plugins/editor/tinymce.php''.

<b>For a complete list of parameters that can be passed to the TinyMCE editor, see the Joomla source file:</b> ''/plugins/editor/tinymce.php''.

−

<b>ATTENTION:</b>

+

−

Be aware that JRequest::GET by default filters all HTML-code. To store HTML-code with your model class you <b>MUST</b> explicitely allow HTML in JReqest::GET, otherwise all HTML will be stripped

+

<b>HINT for your JModel:</b>

+

+

Be aware that JRequest::GET by default filters all HTML-code down to plain text, which might not be very useful when using the editor.

+

+

To store HTML-code within your model class you <b>MUST</b> explicitely request HTML-Code from the JRequest-Object, otherwise all HTML will be stripped ''(and you might spend one day in debugging and reading docs like i did today)''.

<source lang="php">

<source lang="php">

Line 39:

Line 57:

$row =& $this->getTable();

$row =& $this->getTable();

$data = JRequest::get( 'post');

$data = JRequest::get( 'post');

−

/* Get proper data for your HTML-encoded field now */

+

/* Get proper HTML-code for your HTML-encoded field now by using JREQUEST_ALLOWHTML*/

$editor->display() must also be the first function called on the editor if you wish to use specific parameters.

For a complete list of parameters that can be passed to the TinyMCE editor, see the Joomla source file:/plugins/editor/tinymce.php.

HINT for your JModel:

Be aware that JRequest::GET by default filters all HTML-code down to plain text, which might not be very useful when using the editor.

To store HTML-code within your model class you MUST explicitely request HTML-Code from the JRequest-Object, otherwise all HTML will be stripped (and you might spend one day in debugging and reading docs like i did today).

/*The store-procedure in your model might then look like this*/[...]function store(){$row=&$this->getTable();$data= JRequest::get('post');/* Get proper HTML-code for your HTML-encoded field now by using JREQUEST_ALLOWHTML*/$data['yourfieldname']=JRequest::getVar('yourfieldname','','post','string', JREQUEST_ALLOWHTML );/* now proceed as suggested */$row->bind($data);[...]$row->check();[...]$row->store();[...]}[...]