function render() { $this->js(true)->_load('tinymce/tinymce.min')->_load('tinymce/jquery.tinymce.min')->_load('tinymce/xepan4.tinymce'); // $this->js(true)->_load('tinymce/tinymce.min')->_load('tinymce/jquery.tinymce.min')->tinymce(); $this->js(true)->univ()->xtinymce($this, $this->options); // $this->js(true)->univ()->createRTE(array( // 'toolbar'=>'maxi', // 'cssfiles'=> array('templates/default/css/epan.css') // ) // ); parent::render(); }
function render() { if (!self::$js_added) { switch ($this->config->getEditorType()) { case Config::EDITOR_TYPE_GME: $this->app->jquery->addStaticInclude('gme/button-bar'); $this->js(true)->_load('gme/dropzone')->_load('gme/ghostdown')->_load('atk4_markdown')->_css('gme/ghostdown')->_css('gme/dropzone'); break; /*case Config::EDITOR_TYPE_WP: $this->app->jquery ->addStaticInclude('wp/markdown') ->addStaticInclude('wp/prettify') ->addStaticInclude('wp/pagedown/markdown-converter') ->addStaticInclude('wp/pagedown/markdown-editor') ->addStaticInclude('wp/pagedown/markdown-sanitizer') ->addStaticInclude('atk4_markdown') ->addStaticStylesheet('wp/markdown-editor') ->addStaticStylesheet('wp/prettify') ; break;*/ /*case Config::EDITOR_TYPE_WP: $this->app->jquery ->addStaticInclude('wp/markdown') ->addStaticInclude('wp/prettify') ->addStaticInclude('wp/pagedown/markdown-converter') ->addStaticInclude('wp/pagedown/markdown-editor') ->addStaticInclude('wp/pagedown/markdown-sanitizer') ->addStaticInclude('atk4_markdown') ->addStaticStylesheet('wp/markdown-editor') ->addStaticStylesheet('wp/prettify') ; break;*/ case Config::EDITOR_TYPE_JMN: $this->app->jquery->addStaticInclude('wp/markdown')->addStaticInclude('wp/prettify')->addStaticInclude('wp/pagedown/markdown-converter')->addStaticInclude('wp/pagedown/markdown-editor')->addStaticInclude('wp/pagedown/markdown-sanitizer')->addStaticInclude('atk4_markdown')->addStaticStylesheet('wp/markdown-editor')->addStaticStylesheet('wp/prettify'); break; default: throw $this->exception('Not supported'); } self::$js_added = true; } parent::render(); }
function render() { $this->js(true)->_load('tinymce.min')->_load('jquery.tinymce.min')->_load('xepan-richtext-admin'); $this->js(true)->univ()->richtext($this, $this->options); parent::render(); }