grinndaddy
04-08-2004, 10:43 AM
I have recently been working on a new development using a WYSIWYG editor, such as the one found at http://www.freetextbox.com . Here is where my problem is:
There is a DIV tag contained within the contents of my editor. Say for example that DIV tag is contained within a Bold (<B></B>) tag as such:
<B><DIV>Hello World</DIV>More Text</B>
I want to make it so that when the user selects the DIV tag, the bold tag and all of it's contents (including the DIV tag, and "More Text") are selected, to the effect that when the DIV tag is dragged and dropped somewhere else in the editor, the Bold tag and all of it's contents go with it. Furthermore, the DIV tag is absolutely positioned, but is a child element of the bold tag (if this has any relevance at all).
Thanx in advance to anyone who can crack this one.
There is a DIV tag contained within the contents of my editor. Say for example that DIV tag is contained within a Bold (<B></B>) tag as such:
<B><DIV>Hello World</DIV>More Text</B>
I want to make it so that when the user selects the DIV tag, the bold tag and all of it's contents (including the DIV tag, and "More Text") are selected, to the effect that when the DIV tag is dragged and dropped somewhere else in the editor, the Bold tag and all of it's contents go with it. Furthermore, the DIV tag is absolutely positioned, but is a child element of the bold tag (if this has any relevance at all).
Thanx in advance to anyone who can crack this one.