GithubHelp home page GithubHelp logo

Comments (6)

spohlenz avatar spohlenz commented on June 14, 2024

I'm not sure this is a problem that can be surmounted fully due to the same origin policy.

If you are serving your main files from www.example.com and your assets from assets.example.com, you may be able to get around it by declaring in a script tag within your HTML:

document.domain = 'example.com';

You would need to add this to the top of tiny_mce_popup.js also (and there's no easy way to do this currently).

If anyone else can shed any light, it would be appreciated.

from tinymce-rails.

spohlenz avatar spohlenz commented on June 14, 2024

Some more info here: http://www.tinymce.com/wiki.php/How-to_load_TinyMCE_crossdomain

from tinymce-rails.

owenbendavies avatar owenbendavies commented on June 14, 2024

Thanks you your response.

Tinymce do seem to be working on it so it will run from a different host, but for the time being I don't really want to go around editing the gem files.

Is there any option I could set so Tinymce is servered locally (even if I have an asset host set), as this would be preferable for now? I am currently using the inline

<%= tinymce_assets %>

as most user do not edit my site, so is a waste including it in the main assets file.

Owen

from tinymce-rails.

spohlenz avatar spohlenz commented on June 14, 2024

@obduk You can explicitly set the config.tinymce.base config option to /assets/tinymce to ensure that the asset host is not used.

from tinymce-rails.

owenbendavies avatar owenbendavies commented on June 14, 2024

Thanks.

from tinymce-rails.

regedarek avatar regedarek commented on June 14, 2024

@spohlenz but isnt setingconig.tinymce.base to assets/tinymce when I have assets across domains will be affect on performance?

from tinymce-rails.

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.