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:
parent
30d3e6f82e
commit
39f457e90e
60 changed files with 113 additions and 104 deletions
|
@ -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';
|
||||
|
|
|
@ -34,7 +34,7 @@ export default Component.extend({
|
|||
|
||||
schedule('afterRender', () => {
|
||||
let options = {
|
||||
cache_suffix: '?v=5012',
|
||||
cache_suffix: '?v=510',
|
||||
selector: '#' + this.get('editorId'),
|
||||
relative_urls: false,
|
||||
browser_spellcheck: true,
|
||||
|
@ -113,13 +113,14 @@ export default Component.extend({
|
|||
'formatselect fontsizeselect | bold italic underline strikethrough superscript subscript blockquote | forecolor backcolor link unlink',
|
||||
'outdent indent bullist numlist | alignleft aligncenter alignright alignjustify | table uploadimage image media codesample'
|
||||
],
|
||||
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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue