I am currently trying to integrate a RIch Text Editor in an application I am working on. So far, I have tested CKEditor and TinyMCE editor. Assume my application is hosted at http://example.com. I have a constraint in my deployment environment that makes it impossible to serve static assets. For this reason, static assets use a different host which is http://assets.example.com.
I have realized that TinyMCE (as well as CKEditor) dynamically appends <script>
tags in my <head>
tag. However both use absolute path based on http://example.com, therefore they don't work in production for my environment where all static assets are hosted by http://assets.example.com.
My question is simple:
There are various ways how to declare relative/absolte paths in tinymce. Have a look here for a full list: http://www.tinymce.com/wiki.php/TinyMCE_FAQ#Paths.2FURLs_are_incorrect.2C_I_want_absolute.2Frelative_URLs.3F