Hi,
New to this form, I have developed new plugin tool-bar button to change the selected text to red-color and underline. I am facing following issues, any help is appriciated
If it is plan text it is working fine but if my selected test is something like this
AAA<strong>BBB</strong>CCC
Then I am having problem.
1) if user selects BBCC from editor then; I from command I am getting htemText as
<strong>BB</strong>CC
I am changing text to
<strong><u><font>BB</font></u></strong><u><font>CC</font></u>
but after replacement final text in editor is
AAA<strong>B<strong><u><font>BB</font></u></strong><u><font>CC</font></u></strong>C
Editor is adding last </strong> tag automattically; How to avoid this..
2) How to take care of such condition we there is multiple tags in b/w selection
Thanks
New to this form, I have developed new plugin tool-bar button to change the selected text to red-color and underline. I am facing following issues, any help is appriciated
If it is plan text it is working fine but if my selected test is something like this
AAA<strong>BBB</strong>CCC
Then I am having problem.
1) if user selects BBCC from editor then; I from command I am getting htemText as
<strong>BB</strong>CC
I am changing text to
<strong><u><font>BB</font></u></strong><u><font>CC</font></u>
but after replacement final text in editor is
AAA<strong>B<strong><u><font>BB</font></u></strong><u><font>CC</font></u></strong>C
Editor is adding last </strong> tag automattically; How to avoid this..
2) How to take care of such condition we there is multiple tags in b/w selection
Thanks
RE: Inserting text between Nested tags