I used tiny mce (version 3.2.6) for quite some time (without any problems), but wanted to upgrade it to a newer version (3.4.2). The reason for the update was some problems with a third-party plug-in (spellchecker) - after trying with the new version, these problems were fixed on the env developers as well. everything worked fine. The problem arose in real time (after delivering a new version of the application to the client), from the client side you can connect to the application (using tiny mce) in two ways:
(1) enter the address (as usual, everything works fine)
(2) using a kind of portal-client application that changes URLs for some reason that I don’t know - using this method, Tiny mce stopped working after upgrading to (3.4.2). (I checked twice, and this is only due to a tiny upgrade to the mce version, not plugins or other issues).
The way the client portal converts URLs is this: an unconverted URL:
http: //server.address/blabla/js/jsFileName.js? v = 123
converted URL (captured from violinist):
https://client.portal.com/http://server.address/blabla/js/jsFileName.js?v=123&psScriptReferrer=http://server.address/blabla/
As I said, the "old" version (3.2.6) worked fine (even with those magically converted URLs), the problem arose after updating tiny mce (no configuration changes or anything else). The error I am getting is:
q is not a constructor
https://client.portal.com/http://server.address/blabla/js/tiny_mce/tiny_mce.js?v=123&psScriptReferrer=http://server.address/blabla/
Line 1
(function(d){var a=/^\s*|\s*$/g,e,c="B...{a.selection.onSetContent.add(f)})}});
I get this eror in all browsers (verified: IE6 / IE8 / FF3.6). This also causes the tiny mce to not load (only plain-html text input is displayed).
My guess is that the new version included some regular expressions, and the magically transformed link contains more than one "http" line.
I tried some changes for the following parameters (setting them to 0) - no luck: convert_urls: 1, relative_urls: 1, remove_script_host: 1
this is another promise parameter: document_base_url: tinymce.documentBaseURL
, (1) (2), ( ).
100% , tinymce, , "" , . , URL.
<script type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "content, contentFr",
theme : "advanced",
plugins : "spellchecker",
spellchecker_languages : "+English=en_CA,French=fr",
spellchecker_rpc_url : "jmyspell-spellchecker",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,fontselect,fontsizeselect,|,forecolor,backcolor,sub,sup",
theme_advanced_buttons2 : "link,unlink,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,code,|,spellchecker",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : 0,
theme_advanced_path: false,
content_css : "css/tinyMCE_custom.css",
oninit: function(){
tinyMCE.get('content').setContent('some text here');
tinyMCE.get('contentFr').setContent('some different text here');
}
});
</script>
/.
,