diff --git a/bug.php b/bug.php index 8a561e1c0..a184885c4 100644 --- a/bug.php +++ b/bug.php @@ -3,7 +3,7 @@ include_once __DIR__.'/core.php'; $pageTitle = 'Bug'; -$jscript_modules[] = $js.'/ckeditor.js'; +$jscript_modules[] = $js.'/ckeditor/ckeditor.js'; if (filter('op') == 'send') { // Preparazione email diff --git a/gulpfile.js b/gulpfile.js index d23d3d325..ca20cf453 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -180,14 +180,14 @@ gulp.task('srcFonts', function () { gulp.task('ckeditor', function () { gulp.src([ - config.main.bowerDirectory + '/ckeditor/{adapters,lang,skins}/**/*', + config.main.bowerDirectory + '/ckeditor/{adapters,lang,skins,plugins}/**/*.{js,json,css,png}', ]) - .pipe(gulp.dest(config.production + '/' + config.paths.js)); + .pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor')); gulp.src([ - config.main.bowerDirectory + '/ckeditor/{ckeditor,styles}.js', + config.main.bowerDirectory + '/ckeditor/*.{js,css}', ]) - .pipe(gulp.dest(config.production + '/' + config.paths.js)); + .pipe(gulp.dest(config.production + '/' + config.paths.js + '/ckeditor')); }); gulp.task('colorpicker', function () { diff --git a/modules/emails/edit.php b/modules/emails/edit.php index 3a132aa3e..fa051c824 100644 --- a/modules/emails/edit.php +++ b/modules/emails/edit.php @@ -3,7 +3,7 @@ include_once __DIR__.'/../../core.php'; echo ' -'; +'; ?>
@@ -77,11 +77,6 @@ echo ' diff --git a/package.json b/package.json index d61af024f..0e801b555 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "bootstrap-colorpicker": "^2.5.1", "bootstrap-daterangepicker": "^2.1.25", "chart.js": "^2.7.0", - "ckeditor": "^4.6.2", + "ckeditor": "git://github.com/ckeditor/ckeditor-releases.git#full/latest", "components-jqueryui": "^1.12.1", "core-js": "^2.5.1", "datatables.net-bs": "^1.10.15", diff --git a/update/2_3_1.sql b/update/2_3_1.sql index f12b1c251..18e20a545 100644 --- a/update/2_3_1.sql +++ b/update/2_3_1.sql @@ -135,7 +135,7 @@ CREATE TABLE IF NOT EXISTS `zz_email_print` ( ) ENGINE=InnoDB; -- Aggiunta dei moduli dedicati alla gestione delle email -INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`) VALUES (NULL, 'Account email', 'Account email', 'smtp', 'SELECT |select| FROM zz_smtp WHERE 1=1 AND deleted = 0 HAVING 2=2 ORDER BY `name`', 'fa fa-envelope', '2.3', '2.3', '10', NULL, 1, 1); +INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`) VALUES (NULL, 'Account email', 'Account email', 'smtp', 'SELECT |select| FROM zz_smtp WHERE 1=1 AND deleted = 0 HAVING 2=2 ORDER BY `name`', 'fa fa-user-o', '2.3', '2.3', '10', NULL, 1, 1); INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`) VALUES (NULL, 'Template email', 'Template email', 'emails', 'SELECT |select| FROM zz_emails WHERE 1=1 AND deleted = 0 HAVING 2=2 ORDER BY `name`', 'fa fa-pencil-square-o', '2.3', '2.3', '10', NULL, 1, 1); INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `enabled`, `default`) VALUES @@ -148,3 +148,9 @@ INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Template email'), '#', 'id', 2, 1, 0, 1, 1), ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Template email'), 'Nome', 'name', 3, 1, 0, 1, 1), ((SELECT `id` FROM `zz_modules` WHERE `name` = 'Template email'), 'Oggetto', 'subject', 4, 1, 0, 1, 1); + +-- Raggruppamento dei moduli per le email +INSERT INTO `zz_modules` (`id`, `name`, `title`, `directory`, `options`, `options2`, `icon`, `version`, `compatibility`, `order`, `parent`, `default`, `enabled`) VALUES (NULL, 'Gestione email', 'Gestione email', '', '', '', 'fa fa-envelope', '2.3', '2.3', '1', NULL, '1', '1'); + +UPDATE `zz_modules` `t1` INNER JOIN `zz_modules` `t2` ON (`t1`.`name` = 'Account email' AND `t2`.`name` = 'Gestione email') SET `t1`.`parent` = `t2`.`id`; +UPDATE `zz_modules` `t1` INNER JOIN `zz_modules` `t2` ON (`t1`.`name` = 'Template email' AND `t2`.`name` = 'Gestione email') SET `t1`.`parent` = `t2`.`id`;