1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Upgrade TinyMCE to v5.1.0

Introduces new sticky toolbar option!
This commit is contained in:
McMatts 2019-10-21 10:54:01 +01:00
parent 30d3e6f82e
commit 39f457e90e
60 changed files with 113 additions and 104 deletions

View file

@ -64,7 +64,7 @@ export default Component.extend(Modals, Notifier, {
addEditor() {
schedule('afterRender', () => {
let options = {
cache_suffix: '?v=5012',
cache_suffix: '?v=510',
selector: '#' + this.get('editorId'),
relative_urls: false,
browser_spellcheck: true,
@ -101,13 +101,14 @@ export default Component.extend(Modals, Notifier, {
table_toolbar: '',
toolbar1: 'table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol',
toolbar2: 'fontsizeselect | forecolor backcolor link unlink | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify',
toolbar_sticky: true,
save_onsavecallback: function () {
Mousetrap.trigger('ctrl+s');
}
};
if (typeof tinymce === 'undefined') {
$.getScript('/tinymce/tinymce.min.js?v=5012', function () {
$.getScript('/tinymce/tinymce.min.js?v=510', function () {
window.tinymce.dom.Event.domLoaded = true;
tinymce.baseURL = '//' + window.location.host + '/tinymce';
tinymce.suffix = '.min';