Hi,
I managed to create a wysiwyg editor for both mozilla FF and IE.
There is only one problem left and that is my link insertor.
I do not use the standard link insertor of the execCommand.
I use a self written one.
It works perfectly in IE.
for example you select text in the editor (wich is an iframe) you press the link button. A pop up shows up with a few fields.
First field you have to type in the URL. And onother field where you can give your linke a name. if you did select text this name will be the selected text and will be used to wrap arround the a tags that link to the URL. leave it blank and you will see te URL as a link. You can also fill it in manualy.
now I want the same to work in Firefox but I tried lots and lots of things. So my question is:
How to get the content of a selection in an iframe with mozilla??
and how to replace it??
tank you,
best regards,
Lord_Garfield
I managed to create a wysiwyg editor for both mozilla FF and IE.
There is only one problem left and that is my link insertor.
I do not use the standard link insertor of the execCommand.
I use a self written one.
It works perfectly in IE.
for example you select text in the editor (wich is an iframe) you press the link button. A pop up shows up with a few fields.
First field you have to type in the URL. And onother field where you can give your linke a name. if you did select text this name will be the selected text and will be used to wrap arround the a tags that link to the URL. leave it blank and you will see te URL as a link. You can also fill it in manualy.
now I want the same to work in Firefox but I tried lots and lots of things. So my question is:
How to get the content of a selection in an iframe with mozilla??
and how to replace it??
tank you,
best regards,
Lord_Garfield