function __construct($basePath = '') { if (is_null($basePath) || $basePath == '') { $basePath = base_url() . '/ckeditor/'; } parent::__construct($basePath); $this->config['height'] = 100; $this->config['width'] = 465; $this->config['resize_enabled'] = false; $this->config['toolbar'] = array(array('Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'Cut', 'Copy', 'Paste', 'Undo', 'Redo', '-', 'Link', 'Unlink')); }
public function __construct($editor_type, $contenttypeid, $contentid, $parentcontentid, $userid, $toolbartype) { global $stylevar, $vbphrase, $vbphrasegroup, $show; $this->vbphrasegroup = $vbphrasegroup; $this->vbphrase = $vbphrase; $this->stylevar = $stylevar; $this->show = $show; $this->contenttypeid = $contenttypeid; $this->contentid = $contentid; $this->parentcontentid = $parentcontentid; $this->userid = $userid; $this->editor_type = $editor_type; $this->returnOutput = true; $this->toolbartype = $toolbartype; $this->setGlobalConfig(); $this->setToolbar($toolbartype); // To add plugins, do this in the editor_construct hook: //$this->config['_extraPlugins'] .= ',splitquote'; // To remove plugins: //$this->config['_removePlugins'] .= ',contextmenu'; ($hook = vBulletinHook::fetch_hook('editor_construct')) ? eval($hook) : false; parent::__construct(vB::$vbulletin->options['bburl'] . '/clientscript/ckeditor/'); }