dbFields = array( 'tabSize'=>'2', 'toolbar'=>'"bold", "italic", "heading", "|", "quote", "unordered-list", "|", "link", "image", "code", "horizontal-rule", "|", "preview", "side-by-side", "fullscreen"', '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)) { return false; } // Include plugin's CSS files $html = $this->includeCSS('simplemde.min.css'); $html .= $this->includeCSS('bludit.css'); return $html; } public function adminBodyEnd() { global $Language; if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) { return false; } // Spell Checker $spellCheckerEnable = $this->getDbField('spellChecker')?'true':'false'; // Include plugin's Javascript files $html = $this->includeJS('simplemde.min.js'); $html .= ''; return $html; } }