Giter Site home page Giter Site logo

Comments (7)

fyrkant avatar fyrkant commented on May 19, 2024

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.

zmqcherish avatar zmqcherish commented on May 19, 2024

@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.

fyrkant avatar fyrkant commented on May 19, 2024

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.

zmqcherish avatar zmqcherish commented on May 19, 2024

@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.

fyrkant avatar fyrkant commented on May 19, 2024

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.

zmqcherish avatar zmqcherish commented on May 19, 2024

@fyrkant thank you very much.

from tinymce-vue.

haust-lyb avatar haust-lyb commented on May 19, 2024

@fyrkant thank you very much.

现在是2021年了,哥们,我也遇到了和你一样的问题,我需要在局域网中使用tinymce,请问您解决了这个cdn加载问题了吗?我还使用了一些插件好像也是从外网加载的.@zmqcherish

from tinymce-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.