Beispiel #1
0
 public function init()
 {
     if (is_a($this['system']->document, 'JDocumentRAW')) {
         return;
     }
     $editor = JFactory::getConfig()->getValue('config.editor');
     if (in_array(strtolower($editor), array('tinymce', 'jce'))) {
         JEditorWidgetkit::getInstance($editor)->_loadEditor();
     }
 }
Beispiel #2
0
 public function init()
 {
     if (is_a($this['system']->document, 'JDocumentRAW')) {
         return;
     }
     $editor = JFactory::getConfig()->get('editor');
     if (in_array(strtolower($editor), array('tinymce', 'jce', 'jckeditor', 'codemirror'))) {
         JEditorWidgetkit::getInstance($editor)->_loadEditor();
     }
     if ($editor == 'jckeditor') {
         $plugin = JPluginHelper::getPlugin('editors', 'jckeditor');
         $plugin->params->set('returnScript', false);
         JEditorWidgetkit::getInstance('jckeditor')->display('text', '', '100%', '120', 10, 5, false);
     }
 }