Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE Paths, How to specify where to load things like editor_plugin.js

I installed TinyMCE, everything was working great. I then used Google Closure to package my site's JavaScript along with TinyMCE_src

The problem I'm having is that TinyMCE is now making calls to:

plugins/paste/editor_plugin.js themes/advanced/editor_template.js langs/en.js 

And that paths that are being used are invalid, they are 404'ing

How can I tell TinyMCE where to go to get these files?

I tried:

relative_urls : false, document_base_url : "http://www.site.com/path1/", 

But they have no effect on the files above.

Advise? Thanks

like image 204
AnApprentice Avatar asked Dec 10 '10 19:12

AnApprentice


People also ask

How do I put content in TinyMCE?

How to setContent with multiple editors. Running the setContent() function on specifically editorOne with the tinymce. get('editorOne'). setContent(contentOne); method, you can change just editorOne.

Where do I put TinyMCE init?

1 Answer. Show activity on this post. and then in the administrator area go to the plugins manager and open up editors - tinymce, click on the advanced tab and then add it to the custom plugins area.


1 Answers

I had the same issue, and it could have been solved easily if we were able to specify the base url using the document_base_url.

Alternatively, I was able to specify the base url before initializing tinymce.

tinyMCE.baseURL = "URL_TO/tinymce/jscripts/tiny_mce/";// trailing slash important  tinyMCE.init({         mode : "textareas",         theme : "simple" }); 

TinyMCE is working fine now.

like image 189
Rakesh Avatar answered Oct 02 '22 07:10

Rakesh