mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
Enbale browser context menu for TinyMCE
This commit is contained in:
parent
7485f2cef7
commit
e219c97a6b
2 changed files with 5 additions and 6 deletions
|
@ -64,11 +64,10 @@ export default Component.extend(Modals, Notifier, {
|
||||||
addEditor() {
|
addEditor() {
|
||||||
schedule('afterRender', () => {
|
schedule('afterRender', () => {
|
||||||
let options = {
|
let options = {
|
||||||
cache_suffix: '?v=505',
|
cache_suffix: '?v=5012',
|
||||||
selector: '#' + this.get('editorId'),
|
selector: '#' + this.get('editorId'),
|
||||||
relative_urls: false,
|
relative_urls: false,
|
||||||
browser_spellcheck: true,
|
browser_spellcheck: true,
|
||||||
gecko_spellcheck: false,
|
|
||||||
statusbar: false,
|
statusbar: false,
|
||||||
inline: true,
|
inline: true,
|
||||||
paste_data_images: true,
|
paste_data_images: true,
|
||||||
|
@ -108,7 +107,7 @@ export default Component.extend(Modals, Notifier, {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof tinymce === 'undefined') {
|
if (typeof tinymce === 'undefined') {
|
||||||
$.getScript('/tinymce/tinymce.min.js?v=505', function () {
|
$.getScript('/tinymce/tinymce.min.js?v=5012', function () {
|
||||||
window.tinymce.dom.Event.domLoaded = true;
|
window.tinymce.dom.Event.domLoaded = true;
|
||||||
tinymce.baseURL = '//' + window.location.host + '/tinymce';
|
tinymce.baseURL = '//' + window.location.host + '/tinymce';
|
||||||
tinymce.suffix = '.min';
|
tinymce.suffix = '.min';
|
||||||
|
|
|
@ -34,11 +34,11 @@ export default Component.extend({
|
||||||
|
|
||||||
schedule('afterRender', () => {
|
schedule('afterRender', () => {
|
||||||
let options = {
|
let options = {
|
||||||
cache_suffix: '?v=505',
|
cache_suffix: '?v=5012',
|
||||||
selector: '#' + this.get('editorId'),
|
selector: '#' + this.get('editorId'),
|
||||||
relative_urls: false,
|
relative_urls: false,
|
||||||
browser_spellcheck: true,
|
browser_spellcheck: true,
|
||||||
gecko_spellcheck: false,
|
contextmenu: false,
|
||||||
statusbar: false,
|
statusbar: false,
|
||||||
inline: false,
|
inline: false,
|
||||||
paste_data_images: true,
|
paste_data_images: true,
|
||||||
|
@ -117,7 +117,7 @@ export default Component.extend({
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof tinymce === 'undefined') {
|
if (typeof tinymce === 'undefined') {
|
||||||
$.getScript('/tinymce/tinymce.min.js?v=505', function () {
|
$.getScript('/tinymce/tinymce.min.js?v=5012', function () {
|
||||||
window.tinymce.dom.Event.domLoaded = true;
|
window.tinymce.dom.Event.domLoaded = true;
|
||||||
tinymce.baseURL = '//' + window.location.host + '/tinymce';
|
tinymce.baseURL = '//' + window.location.host + '/tinymce';
|
||||||
tinymce.suffix = '.min';
|
tinymce.suffix = '.min';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue