RichTextArea.Formatter wraps modified text/html with copy of parent SPAN (copying all attributes) ??

2012-10-23 Thread TimOnGmail
Hello there folks... So we are using an HTML formatting toolbar for a RichTextArea (as described here and elsewhere: http://code.google.com/p/richtexttoolbar/ ), which calls various methods on RichTextArea.Formatter. For example, toggleBold() (to toggle bolding in a given selected area of

Re: RichTextArea.Formatter wraps modified text/html with copy of parent SPAN (copying all attributes) ??

2012-10-23 Thread TimOnGmail
I noticed someone else was having a similar problem as myself, tho' since they didn't have parent spans with attributes to copy, they were more concerned with how styles were being applied in these cases:

Re: RichTextArea.Formatter wraps modified text/html with copy of parent SPAN (copying all attributes) ??

2012-10-23 Thread TimOnGmail
Another note - in my first post, I incorrectly how the text is modified. It actually is changed from: span abc=hello def=goodbye style=display: inline-block;HERE IS MY TEXT/span to: span abc=hello def=goodbye style=display: inline-block;HERE IS /span span abc=hello def=goodbye

Re: RichTextArea.Formatter wraps modified text/html with copy of parent SPAN (copying all attributes) ??

2012-10-23 Thread TimOnGmail
Another correction (sorry for all the posts) - I noticed that whether the HTML is broken up into separate SPANs, or whether a span is embedded, is dependent upon specific styles of the surrounding SPAN. For example, if the outer span has font-weight: bold and you are turning off bolding, the