Hi, I'm developing a plugin that supports rendering of custom tags, but when using <table> elements, I get an odd behavior...
My plugin adds dataFilters and htmlFilters to the dataProcessor, so that it changes custom tags (say <section> and <item>) into a span element. For instance, <section label="Test"> would be rendered as <span class="ct_custom_tag" tag="section" ct_label="Test">.
So far so good, the dataFilters correctly changed the custom tags into span elements and the htmlFilters back from span elements (containing the ct_custom_tag class) into the corresponding custom tag.
However, when I put the elements in a table (manually in the source code), I get a strange behavior, basically the processor adds extra tags surrounding what's inside <td> tags. For instance, with this code:
When switching to Designer view all would be fine, the rendering of the editor would be as follows:
Which is fine. However, when switching back to Source view, I'll get this:
This is hardly the behavior I want... I believe this only happens on tables (although it could happen with other elements). Does anybody knows any way to change this behavior?
Thanks
My plugin adds dataFilters and htmlFilters to the dataProcessor, so that it changes custom tags (say <section> and <item>) into a span element. For instance, <section label="Test"> would be rendered as <span class="ct_custom_tag" tag="section" ct_label="Test">.
So far so good, the dataFilters correctly changed the custom tags into span elements and the htmlFilters back from span elements (containing the ct_custom_tag class) into the corresponding custom tag.
However, when I put the elements in a table (manually in the source code), I get a strange behavior, basically the processor adds extra tags surrounding what's inside <td> tags. For instance, with this code:
<section label="1. Test"> <table> <tr> <td> <item id="1"/> </td> </tr> <tr> <td> <item id="2"/> </td> </tr> </table> </section>
When switching to Designer view all would be fine, the rendering of the editor would be as follows:
<span tag="section" class="ct_custom_tag" ct_label="1. Test"> <table class=" cke_show_border"> <tbody> <tr> <td><span tag="item" class="ct_custom_tag" ct_id="1"> </span></td> </tr> <tr> <td><span tag="item" class="ct_custom_tag" ct_id="1"> </span></td> </tr> </tbody> </table> </span>
Which is fine. However, when switching back to Source view, I'll get this:
<section label="1. Test"></section> <table> <tbody> <tr> <td> <section label="1. Test"><item id="1"> </item></section></td> </tr> <tr> <td> <section label="1. Test"><item id="2"> </item></section></td> </tr> </tbody> </table>
This is hardly the behavior I want... I believe this only happens on tables (although it could happen with other elements). Does anybody knows any way to change this behavior?
Thanks