I'm trying to use the Notes area of cataloger so that users can upload with the image manager and wanted to do some onmouseover stuff with it (but since the editor embeds the image tag, it's hard to do the onmouseover).
I've tried using the content block tag, but doesn't seem to appear in the cataloger module. While this is easy for us to do, a client may find that too complicated.
BTW-I guess this is what TinyMCE uses to get the image url without the tag:
Code: Select all
convertAllRelativeURLs : function(body) {
var i, elms, src, href, mhref, msrc;
// Convert all image URL:s to absolute URL
elms = body.getElementsByTagName("img");
for (i=0; i<elms.length; i++) {
src = tinyMCE.getAttrib(elms[i], 'src');
msrc = tinyMCE.getAttrib(elms[i], 'mce_src');
if (msrc !== '')
src = msrc;
if (src !== '') {
src = tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings.base_href, src);
elms[i].setAttribute("src", src);
}
}