Hello Paul,
* Paul R <not.a.valid@email.address>:[color=blue]
> See the answers to the thread "Making a MS jscript ECMA/DOM compliant" a
> little earlier and
http://www.mozilla.org/editor/ie2midas.html[/color]
None of those helped :-(. Migrating most of the editor functionality
was not too difficult - especially with the help from the ie2midas
document, but I am not able to figure out how to solve the problem I
described in my last post.
The thread you mention is describing how to do things in a textarea
(which has a .value, etc.). I've seen other examples like that, but
was not able to modify them so that it'll work with an editable
iframe. I guess the textarea is a lot easier, because you don't have to
watch for nodetypes, etc. - everything in there is text?
The midasdemo itself has a function to replace the selection with a
different node (or insert it, if nothing is selected) -
"insertNodeAtSelection()", but I am stuck there too as my task to
enclose it and not replace it. I also need to be able to simply put
html around it - I don't have a "node", but only HTML (I know there
is createContextualFragment() - but that did not help me either by
now).
Perhaps I am just not seeing the light anymore since I am working
too long on this.
Balu