Comments (6)
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.
Some more info here: http://www.tinymce.com/wiki.php/How-to_load_TinyMCE_crossdomain
from tinymce-rails.
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.
@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.
Thanks.
from tinymce-rails.
@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)
- How to show formatted content?
- Missing 5.10.5 update HOT 1
- valid_styles compiles incorrectly for v6 HOT 2
- Couldn't find file 'tinymce-jquery' HOT 2
- Configuring init_instance_callback does not work with string or arrow function HOT 3
- Doesn't work with multiple visits HOT 5
- tinymce fonts are not loading correctly HOT 4
- TinyMCE is stripping HTML code for YouTube iFrame embed, therefore the embed is not displaying HOT 2
- Getting Rails 7 Stimulus controllers to work with Tinymce
- Upgraded tinymce-rails from 5.2 to 6.4.2 and default silver theme is not working HOT 3
- How to use it with paid plugins HOT 2
- Does not work with Propshaft / cssbundling-rails,? HOT 3
- Problem with deploy on production HOT 6
- Can't init editor manually HOT 1
- Rails 7 with Importmaps - TinyMCERails is not defined HOT 4
- Question: How to pass api_key with this gem? HOT 1
- Turbo + TinyMCE — doesn't reinit the editor after a Turbo interaction HOT 2
- Update to TinyMCE 7.0.0
- Wrong license on main branch (since version 7) HOT 1
- Missing release/tag - 4.9.11.1 HOT 2
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-rails.