1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Aggiunte Emoji per ckeditor

This commit is contained in:
Luca
2022-07-31 02:59:22 +02:00
parent 54cb325435
commit d17fb1baf2
5 changed files with 20 additions and 13 deletions

View File

@@ -101,7 +101,7 @@ function initCKEditor(input) {
disableNativeSpellChecker: false, disableNativeSpellChecker: false,
fullPage: (input.hasAttribute('use_full_ckeditor')) ? true : false, fullPage: (input.hasAttribute('use_full_ckeditor')) ? true : false,
allowedContent: (input.hasAttribute('use_full_ckeditor')) ? true : false, allowedContent: (input.hasAttribute('use_full_ckeditor')) ? true : false,
extraPlugins: 'scayt,ckeditor-image-to-base64', extraPlugins: 'scayt,textwatcher,autocomplete,textmatch,emoji',
skin: 'moono-lisa', skin: 'moono-lisa',
}); });

View File

@@ -281,11 +281,25 @@ function srcFonts() {
} }
function ckeditor() { function ckeditor() {
return gulp.src([
const ckeditor = gulp.src([
config.nodeDirectory + '/ckeditor4/{adapters,lang,skins,plugins,core}/**/*.{js,json,css,png,gif,html}', config.nodeDirectory + '/ckeditor4/{adapters,lang,skins,plugins,core}/**/*.{js,json,css,png,gif,html}',
config.nodeDirectory + '/ckeditor4/*.{js,css}', config.nodeDirectory + '/ckeditor4/*.{js,css}',
]) ])
.pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor')); .pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor'));
const plugins = gulp.src([
config.nodeDirectory + '/ckeditor/plugins/{emoji,autocomplete,textmatch,textwatcher}/**/*.{js,json,css,png,gif,html}',
config.nodeDirectory + '/ckeditor-image-to-base/*.{js,json,css,png,gif,html}',
])
.pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor/plugins'));
const extra = gulp.src([
config.nodeDirectory + '/ckeditor-image-to-base/**/*.{js,json,css,png,gif,html}',
])
.pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor/plugins/ckeditor-image-to-base64'));
return merge(ckeditor, plugins, extra);
} }
function colorpicker() { function colorpicker() {

View File

@@ -213,7 +213,7 @@ if (Auth::check()) {
collapse_plugin_sidebar: '.intval(setting('Nascondere la barra dei plugin di default')).', collapse_plugin_sidebar: '.intval(setting('Nascondere la barra dei plugin di default')).',
ckeditorToolbar: [ ckeditorToolbar: [
["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" ], ["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", "EmojiPanel" ],
], ],
ckeditorToolbar_Full: [ ckeditorToolbar_Full: [
{ name: "document", items : [ "Source", "ExportPdf", "Preview", "Print", "-", "Templates" ] }, { name: "document", items : [ "Source", "ExportPdf", "Preview", "Print", "-", "Templates" ] },
@@ -226,7 +226,7 @@ if (Auth::check()) {
{ name: "paragraph", items : [ "NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote","CreateDiv", { name: "paragraph", items : [ "NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote","CreateDiv",
"-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","BidiLtr","BidiRtl","Language" ] }, "-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","BidiLtr","BidiRtl","Language" ] },
{ name: "links", items : [ "Link","Unlink","Anchor" ] }, { name: "links", items : [ "Link","Unlink","Anchor" ] },
{ name: "insert", items : [ "Image","Flash","Table","HorizontalRule","Smiley","SpecialChar","PageBreak","Iframe" ] }, { name: "insert", items : [ "Image","Flash","Table","HorizontalRule","EmojiPanel","SpecialChar","PageBreak","Iframe" ] },
"/", "/",
{ name: "styles", items : [ "Styles","Format","Font","FontSize" ] }, { name: "styles", items : [ "Styles","Format","Font","FontSize" ] },
{ name: "colors", items : [ "TextColor","BGColor" ] }, { name: "colors", items : [ "TextColor","BGColor" ] },

View File

@@ -31,12 +31,6 @@ if ($newsletter->state == 'DEV' && !empty($template)) {
// Duplica newsletter // Duplica newsletter
echo ' echo '
<button type="button" class="btn btn-primary" onclick="if( confirm(\''.tr('Duplicare questa newsletter?').'\') ){ $(\'#copia-newsletter\').submit(); }"> <button type="button" class="btn btn-primary ask" data-title="'.tr('Duplicare questa newsletter?').'" data-msg="'.tr('Clicca su tasto duplica per procedere.').'" data-op="copy" data-button="'.tr('Duplica').'" data-class="btn btn-lg btn-primary" data-backto="record-edit">
<i class="fa fa-copy"></i> '.tr('Duplica newsletter').' <i class="fa fa-copy"></i> '.tr('Duplica newsletter').'
</button>'; </button>';
echo '
<form action="" method="post" id="copia-newsletter">
<input type="hidden" name="backto" value="record-edit">
<input type="hidden" name="op" value="copy">
</form>';

View File

@@ -12,7 +12,6 @@
"bootstrap-maxlength": "^1.10.1", "bootstrap-maxlength": "^1.10.1",
"chart.js": "^3.8.0", "chart.js": "^3.8.0",
"ckeditor4": "ckeditor/ckeditor-releases#full/latest", "ckeditor4": "ckeditor/ckeditor-releases#full/latest",
"ckeditor-image-to-base": "^0.0.3",
"components-jqueryui": "^1.12.1", "components-jqueryui": "^1.12.1",
"datatables.net-bs": "^1.10.15", "datatables.net-bs": "^1.10.15",
"datatables.net-buttons-bs": "^1.3.1", "datatables.net-buttons-bs": "^1.3.1",