Note that there are some explanatory texts on larger screens.

plurals
  1. POJoomla! 1.5.26 TinyMCE init from JEditor or Javascript
    primarykey
    data
    text
    <p>Basically, the Joomla! editor (JCE/TinyMCE) based on a parameter can be enabled or disabled when the users load the specific page. Disabled means: the content is not editable and the opacity background must be set.</p> <p>In the default.php:</p> <pre><code>&lt;?php $editor =&amp; JFactory::getEditor(); /* Parameter Type Default Description $name string The control name $html string The contents of the text area $width string The width of the text area (px or %) $height string The height of the text area (px or %) $col int The number of columns for the textarea $row int The number of rows for the textarea $buttons boolean true True and the editor buttons will be displayed $params array array() Associative array of editor parameters */ echo $editor-&gt;display('emailText', $this-&gt;articleFullText, '960', '700', '20', '20', false); ?&gt; </code></pre> <p>Is it possible to set the editor settings in the default.php (view)? (I did not find any specific parameter)</p> <p>I created the following function (thanks to stackoverflow) which enables or disables the editor</p> <pre><code>function setEditorEditable(editable) { if (editable == 1) { tinymce.get(tinymce.activeEditor.id).getBody().setAttribute('contenteditable', 'true'); J('#' + tinymce.activeEditor.id + '_parent').fadeTo(0, 1); } else { tinymce.get(tinymce.activeEditor.id).getBody().setAttribute('contenteditable', 'false'); J('#' + tinymce.activeEditor.id + '_parent').fadeTo(0, 0.5); } } </code></pre> <p>But, if I call the function within the jQuery .ready the editor DOM obj is null.</p> <p>How and where in code can I set/change the editor setting?</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload