mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Upgrade to Tiny editor v5
This commit is contained in:
parent
8ab3cbe7e8
commit
faf9a555d2
166 changed files with 9534 additions and 15984 deletions
|
@ -34,7 +34,7 @@ export default Component.extend({
|
|||
|
||||
schedule('afterRender', () => {
|
||||
let options = {
|
||||
cache_suffix: '?v=492',
|
||||
cache_suffix: '?v=505',
|
||||
selector: '#' + this.get('editorId'),
|
||||
relative_urls: false,
|
||||
browser_spellcheck: true,
|
||||
|
@ -48,8 +48,8 @@ export default Component.extend({
|
|||
image_advtab: true,
|
||||
image_caption: true,
|
||||
media_live_embeds: true,
|
||||
theme: 'modern',
|
||||
skin: 'lightgray-gradient',
|
||||
theme: 'silver',
|
||||
skin: 'oxide',
|
||||
entity_encoding: 'raw',
|
||||
extended_valid_elements: 'b,i,b/strong,i/em',
|
||||
fontsize_formats:
|
||||
|
@ -103,19 +103,21 @@ export default Component.extend({
|
|||
'advlist autolink lists link image charmap print hr anchor pagebreak',
|
||||
'searchreplace wordcount visualblocks visualchars code codesample fullscreen',
|
||||
'insertdatetime media nonbreaking save table directionality',
|
||||
'template paste textcolor colorpicker textpattern imagetools uploadimage'
|
||||
'template paste textpattern imagetools'
|
||||
],
|
||||
menu: {},
|
||||
menubar: false,
|
||||
toolbar1: 'formatselect fontsizeselect | bold italic underline strikethrough superscript subscript blockquote | forecolor backcolor link unlink',
|
||||
toolbar2: 'outdent indent bullist numlist | alignleft aligncenter alignright alignjustify | table uploadimage image media codesample',
|
||||
toolbar: [
|
||||
'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'
|
||||
],
|
||||
save_onsavecallback: function () {
|
||||
Mousetrap.trigger('ctrl+s');
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof tinymce === 'undefined') {
|
||||
$.getScript('/tinymce/tinymce.min.js?v=492', function () {
|
||||
$.getScript('/tinymce/tinymce.min.js?v=505', 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