Hi,
I'm having some problems when I try to format text when there is a span in the middle of the selected text. Below I've shown the before, after and expected HTML when I try to change the change the font size, for example, by highlighting a word on either side of my span as well as the span itself.
BEFORE:
<
p
>one two <
span
k-immutable
=
"6qxG2g5C1I"
></
span
> three four</
p
>
AFTER:
<
p
>one <
span
style
=
"font-size:72pt;"
>two </
span
><
span
k-immutable
=
"6qxG2g5C1I"
></
span
><
span
style
=
"font-size:72pt;"
> three</
span
> four</
p
>
EXPECTED:
<
p
>one <
span
style
=
"font-size:72pt;"
>two <
span
k-immutable
=
"6qxG2g5C1I"
></
span
> three</
span
> four</
p
>
We use the <span k-immutable="6qxG2g5C1I"> as a merge field so my question is this: is there any way to catch when font is changed through the toolbar (font-size, font-alignment, font-change, font-bold,etc) or is there a way to better wrap around the middle span so that it doesn't ignore the changes I've made?