Problem: When you use the WYSIWYG editor that comes packaged with MKPortal to add local images (such as MKGallery images) to internal pages (pid) the image does not display on the actual internal page.
The image displays just fine if you edit the html source (and if you don't preview) instead of using the WYSIWYG editor but if you use the editor it does not display in the internal page.
The problem is the editor javascript itself. It is changing the full URL to a relative URL. But the URL is relative to the /mkportal/ directory and not to the "root" directory where index.php is and where the pid pages display.
I found a solution on this thread for IE.
http://www.interacti....cgi?post=33616
FIND:
/mkportal/editor/htmlarea.js said:
// strip to last directory in case baseurl points to a file
baseurl = baseurl.replace(/[^\/]+$/, '');
var basere = new RegExp(baseurl);
string = string.replace(basere, "");
baseurl = baseurl.replace(/[^\/]+$/, '');
var basere = new RegExp(baseurl);
string = string.replace(basere, "");
Comment out these lines like this...
FIND:
/mkportal/editor/htmlarea.js said:
// strip to last directory in case baseurl points to a file
// baseurl = baseurl.replace(/[^\/]+$/, '');
// var basere = new RegExp(baseurl);
// string = string.replace(basere, "");
// baseurl = baseurl.replace(/[^\/]+$/, '');
// var basere = new RegExp(baseurl);
// string = string.replace(basere, "");
It seems to be working for me.
-=DKC=-













