Skip to content

Commit

Permalink
Upgrade TinyMCE to version 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlorimer committed May 17, 2022
1 parent 246e122 commit f2f4026
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 2,893 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"symfony/yaml": "^5.2",
"tecnickcom/tcpdf": "^6.4",
"tedivm/jshrink": "^1.3",
"tinymce/tinymce": "^4.9.11",
"tinymce/tinymce": "^5.10",
"tuupola/slim-jwt-auth": "^2.0",
"vlucas/phpdotenv": "^3.5",
"voku/anti-xss": "^4.0",
Expand Down
33 changes: 22 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion include/SuiteEditor/SuiteEditorConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ public static function getSuiteSettings($html, $width)
onClickTemplateBody();
});
},
height : '480',
plugins: ['code', 'table', 'link', 'image'],
}");
toolbar: ['fontselect | fontsizeselect | bold italic underline | forecolor backcolor | styleselect | outdent indent | link image'],
}"
);
}

/**
Expand Down
20 changes: 10 additions & 10 deletions modules/Emails/include/ComposeView/EmailsComposeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,11 +1125,14 @@

if ($(self).find('#is_only_plain_text').length === 1) {
$(self).find('#is_only_plain_text').click(function () {
var tinemceToolbar = $(tinymce.EditorManager.activeEditor.getContainer()).find('.mce-toolbar');
let tinymceContainer = $(tinymce.EditorManager.activeEditor.getContainer());
let description = $(self).find('#description');
if ($('#is_only_plain_text').prop('checked')) {
tinemceToolbar.hide();
tinymceContainer.hide();
description.show();
} else {
tinemceToolbar.show();
description.hide();
tinymceContainer.show();
}
});
}
Expand Down Expand Up @@ -1383,19 +1386,16 @@

$.fn.EmailsComposeView.defaults = {
"tinyMceOptions": {
skin_url: "themes/default/css",
skin: "",
plugins: "fullscreen textcolor",
menubar: false,
toolbar: ['fontselect | fontsizeselect | bold italic underline forecolor backcolor | styleselect'],
toolbar: ['fontselect | fontsizeselect | bold italic underline | forecolor backcolor | styleselect | outdent indent'],
formats: {
bold: {inline: 'b'},
italic: {inline: 'i'},
underline: {inline: 'u'}
},
convert_urls:true,
relative_urls:false,
remove_script_host:false,
convert_urls: true,
relative_urls: false,
remove_script_host: false,
}
};
}(jQuery));
5 changes: 3 additions & 2 deletions themes/SuiteP/css/Dawn/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/SuiteP/css/Dawn/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
@import '../suitep-base/modal';
@import '../suitep-base/popup';
@import '../suitep-base/studio';
@import '../suitep-base/tinemce.scss';
@import '../suitep-base/tinymce.scss';
@import '../suitep-base/jstree';
@import '../suitep-base/search';
//
5 changes: 3 additions & 2 deletions themes/SuiteP/css/Day/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/SuiteP/css/Day/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
@import '../suitep-base/modal';
@import '../suitep-base/popup';
@import '../suitep-base/studio';
@import '../suitep-base/tinemce.scss';
@import '../suitep-base/tinymce.scss';
@import '../suitep-base/jstree';
//
5 changes: 3 additions & 2 deletions themes/SuiteP/css/Dusk/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/SuiteP/css/Dusk/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
@import '../suitep-base/modal';
@import '../suitep-base/popup';
@import '../suitep-base/studio';
@import '../suitep-base/tinemce.scss';
@import '../suitep-base/tinymce.scss';
@import '../suitep-base/jstree';
@import '../suitep-base/search';
//
5 changes: 3 additions & 2 deletions themes/SuiteP/css/Night/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/SuiteP/css/Night/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
@import '../suitep-base/modal';
@import '../suitep-base/popup';
@import '../suitep-base/studio';
@import '../suitep-base/tinemce.scss';
@import '../suitep-base/tinymce.scss';
@import '../suitep-base/jstree';
//
5 changes: 3 additions & 2 deletions themes/SuiteP/css/Noon/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/SuiteP/css/Noon/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
@import '../suitep-base/modal';
@import '../suitep-base/popup';
@import '../suitep-base/studio';
@import '../suitep-base/tinemce.scss';
@import '../suitep-base/tinymce.scss';
@import '../suitep-base/jstree';
@import '../suitep-base/search';
//
Loading

0 comments on commit f2f4026

Please sign in to comment.