Updates tinymce to 5.5.1 and implements toolbar_mode option for htmlarea

This commit is contained in:
Hadi Nategh 2020-10-14 10:40:35 +02:00
parent b6f19f5a2b
commit b42a4c097b
4 changed files with 25 additions and 8 deletions

View File

@ -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}'
}
};
/**

View File

@ -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,

View File

@ -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",

17
composer.lock generated
View File

@ -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"
},
{