Completamento aggiunta toolbar full per ckeditor

This commit is contained in:
Luca 2021-05-26 14:26:33 +02:00
parent 8a608ed9fd
commit e917baa371
1 changed files with 3 additions and 5 deletions

View File

@ -90,18 +90,16 @@ function initCKEditor(input) {
if (instance) {
instance.destroy();
}
if (input.hasAttribute('use_full_ckeditor')) {
globals.ckeditorToolbar = globals.ckeditorToolbar_Full;
}
// Avvio di CKEditor
CKEDITOR.replace(name, {
toolbar: globals.ckeditorToolbar,
toolbar: (input.hasAttribute('use_full_ckeditor')) ? globals.ckeditorToolbar_Full : globals.ckeditorToolbar,
language: globals.locale,
scayt_autoStartup: true,
scayt_sLang: globals.full_locale,
disableNativeSpellChecker: false,
fullPage: (input.hasAttribute('use_full_ckeditor')) ? true : false,
allowedContent: (input.hasAttribute('use_full_ckeditor')) ? true : false,
});
// Gestione di eventi noti