I am trying to create a textnode for an anchor tag in the editor, but it keeps complaining it's not allowed. This is what I have so far:
function newLink(url)
{
var oEditor = window.parent.InnerDialogLoaded() ;
var oImg = oEditor.FCK.CreateElement( 'A' ) ;
oImg.setAttribute('href',url);
oImg.setAttribute('target','seperatewindow');
oName = oEditor.FCK.createTextNode('cees'); <-- this is not supported??
oImg.appendChild(oName);
}
I need this to be able to NAME the link I have created. Anyone??
Thanks
Cees
function newLink(url)
{
var oEditor = window.parent.InnerDialogLoaded() ;
var oImg = oEditor.FCK.CreateElement( 'A' ) ;
oImg.setAttribute('href',url);
oImg.setAttribute('target','seperatewindow');
oName = oEditor.FCK.createTextNode('cees'); <-- this is not supported??
oImg.appendChild(oName);
}
I need this to be able to NAME the link I have created. Anyone??
Thanks
Cees