hey i have an issue ive read it once, but i cant find it, when i insert an linkable image it appear at the end of all the text and not where my text pointer were like:
[...]
I think this is the relevant code. In the advanced image module you have this
MYRTE=window.opener.document.getElementById(area).contentWindow;
window.opener.currentRTE=area;
MYRTE.document.body.innerHTML += link1 +\"<img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" src=\\\"".$config_http_script_dir.substr($config_path_image_upload, 1)."/\"+ path +\"\"+ selectedImage +\"\\\">\" + link2;
The image link is just appended to the end of the content in the text area.
The original images.mdu code is a bit different
MYRTE=window.opener.document.getElementById(area).contentWindow;
window.opener.currentRTE=area;
MYRTE.document.execCommand('InsertImage', false, '-my-temp-img-url-');
replacement = \"$config_http_script_dir/data/upimages/\" + selectedImage + \"\\\" alt=\\\"\" + alternativeText + \"\\\" border=\\\"\" + imageBorder + \"\\\" align=\\\"\" + imageAlign;
MYRTE.document.body.innerHTML = MYRTE.document.body.innerHTML.replace(/-my-temp-img-url-/gi,replacement);
Some placeholder text (-my-temp-img-url-) is inserted at the current insertion point. Then this is replaced by the image link.
I haven't tried to edit this and make it work for the advanced. I also wonder what is the purpose of inserting the placeholder text. Why not just construt the image url and then use that in the execCommand statement?