Hi,
I made a plugin which creates and edits links. Why? Because i want people to be able to select predefined links for instance to other pages in the cms or files just uploaded.
The problem is not with creating links, which works perfectly fine. The problem is with changing the href of the link.
Here's a code snippet:
Now when i do this everything seems to work fine. I can inspect the members of eSelected and they all have the correct new value of them. But When i inspect the code of the html output, all the properties of the link are changed correctly except for the href property, which is still in the old value. Have i run into a bug here, or am i doing somthing completely wrong?
Thanks for helping!
Dirk
I made a plugin which creates and edits links. Why? Because i want people to be able to select predefined links for instance to other pages in the cms or files just uploaded.
The problem is not with creating links, which works perfectly fine. The problem is with changing the href of the link.
Here's a code snippet:
var eSelected=oEditor.FCKSelection.MoveToAncestorNode('A') ; eSelected.onClick=''; eSelected.title=arr['title']; eSelected.target=arr['target']; eSelected.href=arr['href'];
Now when i do this everything seems to work fine. I can inspect the members of eSelected and they all have the correct new value of them. But When i inspect the code of the html output, all the properties of the link are changed correctly except for the href property, which is still in the old value. Have i run into a bug here, or am i doing somthing completely wrong?
Thanks for helping!
Dirk
Re: Link Problem