dbFields = array( 'tabSize'=>'2', 'toolbar'=>'"bold", "italic", "heading", "|", "quote", "unordered-list", "|", "link", "image", "code", "horizontal-rule", "|", "preview", "side-by-side", "fullscreen"', 'autosave'=>false, 'spellChecker'=>true ); } public function form() { global $Language; $html = '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; return $html; } public function adminHead() { if (in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) { $html = ''; // Path plugin. $pluginPath = $this->htmlPath(); // SimpleMDE css $html .= ''; // SimpleMDE js $html .= ''; // Hack for Bludit $html .= ''; return $html; } return false; } public function adminBodyEnd() { if (in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) { // Autosave global $Page; global $Language; $autosaveID = $GLOBALS['ADMIN_CONTROLLER']; $autosaveEnable = $this->getDbField('autosave')?'true':'false'; if (!empty($Page)) { $autosaveID = $Page->key(); } // Spell Checker $spellCheckerEnable = $this->getDbField('spellChecker')?'true':'false'; $pluginPath = $this->htmlPath(); $html = ''; return $html; } return false; } }