function init() { parent::init(); // $this->js(true)->_load('elrte/js/elrte.min')->_load('rte'); // $this->setFieldHint('Use Save Icon of this window to save the form contents'); $this->addClass('tinymce'); $this->owner->js()->_selector('*')->on('pagehide', $this->js()->alert('hi')->tinymce()->remove()->_enclose()); }
function init() { parent::init(); Initiator::getInstance()->addLocation($this->app); $this->config = Config::getInstance($this->app); $this->checkImageUpload(); $this->addWrapper(); switch ($this->config->getEditorType()) { case Config::EDITOR_TYPE_GME: $this->js(true)->atk4_markdown()->markdown($this->name, $this->app->url(null, ['md_image' => 'upload'])); break; /*case Config::EDITOR_TYPE_WP: $this->js(true)->atk4_markdown()->markdownWP($this->name); break;*/ /*case Config::EDITOR_TYPE_WP: $this->js(true)->atk4_markdown()->markdownWP($this->name); break;*/ case Config::EDITOR_TYPE_JMN: $this->js(true)->atk4_markdown()->markdownJMN($this->name); break; default: throw $this->exception('Not supported'); } }
function init() { parent::init(); $this->addClass('tinymce'); }