View Full Version : Need to create an insert anchor button
aleon
05-19-2005, 11:33 AM
Hi, I know how to add new buttons to the wysiwyg editor but I am having difficulty making one insert an anchor......I have been playing around with execCommand("CreateBookmark") but to no avail........any suggestions gratefully received....
aleon
05-19-2005, 04:57 PM
I have now found a way to do this using foo.document.selection.createRange()(0).tagName == "A"
Chris S
05-20-2005, 03:24 AM
Hi,
Do you think it'd be worth us including it in our next version? I can put it in (if you don't mind sharing)...
I have now found a way to do this using foo.document.selection.createRange()(0).tagName == "A"
aleon
05-23-2005, 02:31 PM
Hi,
Do you think it'd be worth us including it in our next version? I can put it in (if you don't mind sharing)...
I do think it is a good idea.....but I found some code which I incorporated and modified....and I have a feeling it may have been from your devedit package as the variable names were the same as in your wysywig
Chris S
05-24-2005, 02:02 AM
Hey,
Ahh fair enough.. If you send me (private message or email) the code I'll get it in there & test it with mozilla & IE.
Thanks :)
I do think it is a good idea.....but I found some code which I incorporated and modified....and I have a feeling it may have been from your devedit package as the variable names were the same as in your wysywig