When we open database content such as the following,
- Code: Select all
<p>test <span style="font-weight:bold;">test</span> test</p>
and then save the content through WYMeditor, the <span> tag is replaced with an appropriate <strong> tag.
- Code: Select all
<p>test <strong>test</strong> test</p>
However, if we use content where the style attribute does not have an equivalent html tag:
- Code: Select all
<p>test <span style="text-transform:uppercase;">test</span> test</p>
the opening <span> tag is completely removed by WYMeditor, leaving an orphaned </span>.
- Code: Select all
<p>test test</span> test</p>
Obviously, this is an issue.
This happens only with <span> tags. Other tags, such as <strong> or <em> are not affected.
Am I alone in this issue, or is this in fact a bug?
I searched the forum and didn't see anyone else with my issue; If this has been approached somewhere else, please direct me to the appropriate thread.
This is the latest WYMeditor release (0.5rc1)