diff --git a/assets/src/js/functions/textarea.js b/assets/src/js/functions/textarea.js index 43f54143d..1681e0fb2 100644 --- a/assets/src/js/functions/textarea.js +++ b/assets/src/js/functions/textarea.js @@ -100,6 +100,8 @@ function initCKEditor(input) { disableNativeSpellChecker: false, fullPage: (input.hasAttribute('use_full_ckeditor')) ? true : false, allowedContent: (input.hasAttribute('use_full_ckeditor')) ? true : false, + extraPlugins: 'scayt', + skin: 'moono-lisa', }); // Gestione di eventi noti diff --git a/gulpfile.js b/gulpfile.js index 9d4780587..0aa0facb3 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -275,8 +275,8 @@ function srcFonts() { function ckeditor() { return gulp.src([ - config.nodeDirectory + '/ckeditor4-dev/{adapters,lang,skins,plugins,core}/**/*.{js,json,css,png}', - config.nodeDirectory + '/ckeditor4-dev/*.{js,css}', + config.nodeDirectory + '/ckeditor4/{adapters,lang,skins,plugins,core}/**/*.{js,json,css,png}', + config.nodeDirectory + '/ckeditor4/*.{js,css}', ]) .pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor')); } diff --git a/include/top.php b/include/top.php index 44b2df118..8b711ee16 100755 --- a/include/top.php +++ b/include/top.php @@ -198,7 +198,7 @@ if (Auth::check()) { end_date_formatted: "'.Translator::dateToLocale($_SESSION['period_end']).'", ckeditorToolbar: [ - ["Undo","Redo","-","Cut","Copy","Paste","PasteText","PasteFromWord","-","Scayt", "-","Link","Unlink","-","Bold","Italic","Underline","Superscript","SpecialChar","HorizontalRule","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","Outdent","Indent","Blockquote","-","Styles","Format","Image","Table", "TextColor", "BGColor" ], + ["Undo","Redo","-","Cut","Copy","Paste","PasteText","PasteFromWord","-","SpellChecker", "Scayt", "-","Link","Unlink","-","Bold","Italic","Underline","Superscript","SpecialChar","HorizontalRule","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","NumberedList","BulletedList","Outdent","Indent","Blockquote","-","Styles","Format","Image","Table", "TextColor", "BGColor" ], ], ckeditorToolbar_Full: [ { name: "document", items : [ "Source" ] }, diff --git a/package.json b/package.json index 77b7733a4..80f215a13 100755 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "bootstrap-daterangepicker": "^2.1.25", "bootstrap-maxlength": "^1.10.0", "chart.js": "^2.7.0", - "ckeditor4-dev": "^4.14.1", + "ckeditor4": "^4.16.1", "components-jqueryui": "^1.12.1", "datatables.net-bs": "^1.10.15", "datatables.net-buttons-bs": "^1.3.1",