From 23bcaebc0cdbc0d373bbcf6bad3c92e079a1e133 Mon Sep 17 00:00:00 2001 From: szymon Date: Thu, 6 Apr 2023 11:36:03 +0200 Subject: [PATCH] cdn in cdn.magico.pl --- README.md | 6 ++++ public/index.html | 41 +++++++++++++++----------- src/components/plugin/SectionImage.vue | 2 +- src/components/tinymce/config.js | 3 +- 4 files changed, 33 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 37b6e9d..d59a116 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,9 @@ npm run lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). + + + +IMPORT TINYMCE FROM CDN + + diff --git a/public/index.html b/public/index.html index 3a6dcde..2e16962 100644 --- a/public/index.html +++ b/public/index.html @@ -1,19 +1,26 @@ - - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
- - - + + + + + + + + + + <%= htmlWebpackPlugin.options.title %> + + + + + +
+ + + + \ No newline at end of file diff --git a/src/components/plugin/SectionImage.vue b/src/components/plugin/SectionImage.vue index 64fbfe6..a308319 100644 --- a/src/components/plugin/SectionImage.vue +++ b/src/components/plugin/SectionImage.vue @@ -191,7 +191,7 @@ export default { }, modalOpen: function () { this.modalBox = !this.modalBox; - this.getItems(); + //this.getItems(); }, }, diff --git a/src/components/tinymce/config.js b/src/components/tinymce/config.js index 52a9e63..00972f0 100644 --- a/src/components/tinymce/config.js +++ b/src/components/tinymce/config.js @@ -3,7 +3,7 @@ export default { width: '100%', selector: "textarea.wysiwyg", language: "pl", - language_url: 'https://www.magico.pl/assets/js/tinymce/langs/pl.js', + language_url: 'https://cdn.magico.pl/tinymce/langs/pl.js', forced_root_block: "p", entity_encoding: 'named', entities: '160,nbsp,38,amp,60,lt,62,gt', @@ -16,6 +16,7 @@ export default { image_caption: true, image_description: true, image_title: true, + promotion: false, visualblocks_default_state: true, visualchars_default_state: false, formats: {