init() 공개 메소드

public init ( )
예제 #1
0
 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());
 }
예제 #2
0
파일: Markdown.php 프로젝트: atk4/markdown
 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');
     }
 }
예제 #3
0
파일: RichText.php 프로젝트: xepan/base
 function init()
 {
     parent::init();
     $this->addClass('tinymce');
 }