From b42a4c097be6f1dfdbc72864ed655500475798f7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 14 Oct 2020 10:40:35 +0200 Subject: [PATCH] Updates tinymce to 5.5.1 and implements toolbar_mode option for htmlarea --- api/js/etemplate/et2_widget_htmlarea.js | 7 +++++++ api/js/etemplate/et2_widget_htmlarea.ts | 7 +++++++ composer.json | 2 +- composer.lock | 17 ++++++++++------- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/api/js/etemplate/et2_widget_htmlarea.js b/api/js/etemplate/et2_widget_htmlarea.js index 60c806eae9..5c7c12ada3 100644 --- a/api/js/etemplate/et2_widget_htmlarea.js +++ b/api/js/etemplate/et2_widget_htmlarea.js @@ -88,6 +88,7 @@ var et2_htmlarea = /** @class */ (function (_super) { body_id: this.dom_id + '_htmlarea', menubar: false, statusbar: this.options.statusbar, + toolbar_mode: this.options.toolbar_mode, branding: false, resize: false, height: this.options.height, @@ -426,6 +427,12 @@ var et2_htmlarea = /** @class */ (function (_super) { 'description': 'Comma separated string of toolbar actions. It will only be considered if no Mode is restricted.', 'default': '', 'type': 'string' + }, + toolbar_mode: { + 'name': 'toolbar mode', + 'type': 'string', + 'default': 'floating', + 'description': 'It allows to extend the toolbar to accommodate the overflowing toolbar buttons. {floating, sliding, scrolling, wrap}' } }; /** diff --git a/api/js/etemplate/et2_widget_htmlarea.ts b/api/js/etemplate/et2_widget_htmlarea.ts index 98c765d450..ed5c92b563 100644 --- a/api/js/etemplate/et2_widget_htmlarea.ts +++ b/api/js/etemplate/et2_widget_htmlarea.ts @@ -89,6 +89,12 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable 'description': 'Comma separated string of toolbar actions. It will only be considered if no Mode is restricted.', 'default': '', 'type': 'string' + }, + toolbar_mode: { + 'name': 'toolbar mode', + 'type': 'string', + 'default': 'floating', + 'description': 'It allows to extend the toolbar to accommodate the overflowing toolbar buttons. {floating, sliding, scrolling, wrap}' } }; @@ -213,6 +219,7 @@ export class et2_htmlarea extends et2_editableWidget implements et2_IResizeable body_id: this.dom_id + '_htmlarea', menubar: false, statusbar: this.options.statusbar, + toolbar_mode: this.options.toolbar_mode, branding: false, resize: false, height: this.options.height, diff --git a/composer.json b/composer.json index 12534a9ada..8cba304a0a 100644 --- a/composer.json +++ b/composer.json @@ -105,7 +105,7 @@ "pear/xml_feed_parser": "^1.0.5", "pragmarx/google2fa-qrcode": "^1.0", "simplesamlphp/simplesamlphp": "^1.18", - "tinymce/tinymce": "^5.0" + "tinymce/tinymce": "^5" }, "require-dev": { "guzzlehttp/guzzle": "^6.5", diff --git a/composer.lock b/composer.lock index 258b40d698..19a3e33b81 100644 --- a/composer.lock +++ b/composer.lock @@ -7332,16 +7332,16 @@ }, { "name": "tinymce/tinymce", - "version": "5.0.7", + "version": "5.5.1", "source": { "type": "git", "url": "https://github.com/tinymce/tinymce-dist.git", - "reference": "0ae953e05a2d2bfdf4a35a9ad8eaf6df0f875393" + "reference": "a436d254bc8d62e50be1fdb3d3e98981ab0e4c40" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tinymce/tinymce-dist/zipball/0ae953e05a2d2bfdf4a35a9ad8eaf6df0f875393", - "reference": "0ae953e05a2d2bfdf4a35a9ad8eaf6df0f875393", + "url": "https://api.github.com/repos/tinymce/tinymce-dist/zipball/a436d254bc8d62e50be1fdb3d3e98981ab0e4c40", + "reference": "a436d254bc8d62e50be1fdb3d3e98981ab0e4c40", "shasum": "" }, "type": "component", @@ -7350,13 +7350,15 @@ "scripts": [ "tinymce.js", "plugins/*/plugin.js", - "themes/*/theme.js" + "themes/*/theme.js", + "themes/*/icons.js" ], "files": [ "tinymce.min.js", "plugins/*/plugin.min.js", "themes/*/theme.min.js", - "skins/**" + "skins/**", + "icons/*/icons.min.js" ] } }, @@ -7374,7 +7376,7 @@ "tinymce", "wysiwyg" ], - "time": "2019-06-05T06:30:54+00:00" + "time": "2020-10-01T05:31:22+00:00" }, { "name": "twig/extensions", @@ -7429,6 +7431,7 @@ "i18n", "text" ], + "abandoned": true, "time": "2018-12-05T18:34:18+00:00" }, {