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)) {
return false;
}
$html = '';
// Path plugin.
$pluginPath = $this->htmlPath();
// SimpleMDE css
$html .= '';
// Hack for Bludit
$html .= '';
return $html;
}
public function adminBodyEnd()
{
if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) {
return false;
}
// 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();
// SimpleMDE js
$html = '';
$html .= '';
return $html;
}
}