Clean code

This commit is contained in:
Laurent Destailleur 2024-08-28 18:50:18 +02:00
parent 85d2080081
commit 8232a5cdad
2 changed files with 3 additions and 1 deletions

View File

@ -251,7 +251,7 @@ class DolEditor
}
*/
},
disableNativeSpellChecker: '.(!getDolGlobalString('CKEDITOR_NATIVE_SPELLCHECKER') ? 'true' : 'false');
disableNativeSpellChecker: '.(getDolGlobalString('CKEDITOR_NATIVE_SPELLCHECKER') ? 'false' : 'true');
if ($this->uselocalbrowser) {
$out .= ','."\n";

View File

@ -3431,6 +3431,8 @@ if (!GETPOST('hide_websitemenu')) {
// Edit CKEditor
if (getDolGlobalInt('WEBSITE_ALLOW_CKEDITOR')) {
print '<a href="'.$_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$pageid.'&action=editcontent&token='.newToken().'" class="button bordertransp"'.$disabled.'>'.dol_escape_htmltag("CKEditor").'</a>';
} else {
print '<!-- Add option WEBSITE_ALLOW_CKEDITOR to allow ckeditor -->';
}
print '</span>';