Comments (7)
There's no baseURI setting that can change which tinymce is loaded, the easiest way to do what you want to do would be to add a script tag linking in the CDN you want to use before you load the editor vue application.
from tinymce-vue.
@fyrkant I find there are properties called baseURI and baseURL in official docs: https://www.tiny.cloud/docs/api/tinymce/tinymce.editormanager/#properties,
but I don't how to use them.
In addition, I can't add a script tag for my vue component, just want to use the Editor component like below:
import Editor from '@tinymce/tinymce-vue';
from tinymce-vue.
Those are properties on the editor object, not settings - so stuff you can read but not set.
Is there a reason why you can't add a script tag? You have to add a script tag already for the vue app, right?
Other than a script tag you can try to bundle the editor into your javascript bundle, but that is a bit more work to get working, you have to host the skin files and so on.
from tinymce-vue.
@fyrkant thanks, I just make it work.
But I still want there is a trick to change the default script download url, when use the component Editor. Otherwise some vue feature can not be used, like v-model
from tinymce-vue.
You can still use v-model even if you load tinymce with a script tag, if you just load TinyMCE with a script tag before you load your vue application the tinymce-vue component will use the tinymce you have made available with the script tag instead of auto-loading from the TinyMCE Cloud.
from tinymce-vue.
@fyrkant thank you very much.
from tinymce-vue.
@fyrkant thank you very much.
现在是2021年了,哥们,我也遇到了和你一样的问题,我需要在局域网中使用tinymce,请问您解决了这个cdn加载问题了吗?我还使用了一些插件好像也是从外网加载的.@zmqcherish
from tinymce-vue.
Related Issues (20)
- I hope Dialogs can customize the mount DOM location HOT 1
- Uncaught TypeError: Cannot read properties of null (reading 'init') HOT 1
- How to change tinymce language dynamically? HOT 2
- Why is the li tag inside the ol tag separated? HOT 1
- How can i control br tag? HOT 1
- bug of remove editor😱😱 HOT 1
- 关于富文本插入html标签后,光标定位问题 HOT 2
- Cursor position problem HOT 1
- Menu width limited HOT 1
- Tab key issue! HOT 1
- HTTP Error:400 HOT 1
- Multiple tinymce in vue js HOT 1
- API key warning on self-hosted TinyMCE HOT 3
- TinyMCE not working when editor is inside bootstrap modal
- Laravel 10 + Inertia + Vue 3 + Vite + Self hosted Error HOT 1
- TinyMCE Cross-Site Scripting (XSS) vulnerability HOT 3
- Failed to load plugin
- How do I customize img attributes using images_upload_handler instead of putting them all in src?
- How to set the address of CDN? How to change the suffix of uploaded images?
- New version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinymce-vue.