Tiny MCE--> Relative Absolute URL for Images IE and Firefox different

This commit is contained in:
JT Smith 2007-02-27 18:41:01 +00:00
parent 1b1804fc16
commit ff03aebfd3
4 changed files with 5 additions and 35 deletions

View file

@ -1,9 +1,8 @@
// WebGUI Specific javascript functions for TinyMCE
function tinyMCE_WebGUI_URLConvertor(url, node, on_save) {
// The next line would have tried formatting the URL, but we don't want it to
//url = tinyMCE.convertURL(url, node, on_save);
// Do custom WebUI convertion, replace back ^();
url = tinyMCE.convertURL(url, node, on_save);
// Do custom WebGUI convertion, replace back ^();
url = url.replace(new RegExp("%5E", "g"), "^");
url = url.replace(new RegExp("%3B", "g"), ";");
url = url.replace(new RegExp("%28", "g"), "(");
@ -16,8 +15,6 @@ function tinyMCE_WebGUI_URLConvertor(url, node, on_save) {
}
function tinyMCE_WebGUI_Cleanup(type,value) {
// alert(value);
// return value;
if (value != "[object HTMLBodyElement]" && value != "[object]") {
value = value.replace(new RegExp(""", "g"),"\"");
}