Menu
Hi everyone,
following ploblem: I’m trying for my wysiwug editor to write a function that adds the attribute align to an given image-tag. Problem is i dont get the object to change it!
[CODE]
function imagealign(align){
document.getElementById(‘myEditor’).contentWindow.focus();
var selection = document.getElementById(‘myEditor’).contentWindow.document.selection;
alert(selection.createRange.select.htmlText);
}
so far so good. but i dont get the selected img as object…