Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
2.5.5
-
None
Description
The richtext editor will create custom tags which contains the the following markup : ezxhtml:class="ez-custom-tag ez-custom-tag--attributes-visible". The fact that it creates these class attributes are not big problem.
However, the fact that the editor requires them to exist in order to work properly is. If the {{ez-custom-tag} class is missing, the red line around the custom tag is missing, and the "pencil" button do not work and the custom tag's content ("block custom tag" in this case) is just displayed below the attributes
A consequence if this is that ezxmltext documents (ezpublish 5.4) converted to richtext is not showing correctly in editor
Full example.
Document working in editor:
<?xml version="1.0" encoding="UTF-8"?>\n <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> <para>some text</para> <eztemplate name="vcustom" ezxhtml:class="ez-custom-tag ez-custom-tag--attributes-visible"> <ezcontent> <para>block custom tag</para> </ezcontent> <ezconfig> <ezvalue key="attrTitle">my title</ezvalue> <ezvalue key="attrDesc">my description</ezvalue> <ezvalue key="attrColor">blue</ezvalue> <ezvalue key="attrUrl">eznode://86</ezvalue> </ezconfig> </eztemplate> </section>
Document NOT working in editor, but it should too:
<?xml version="1.0" encoding="UTF-8"?>\n <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> <para>some text</para> <eztemplate name="vcustom"> <ezcontent> <para>block custom tag</para> </ezcontent> <ezconfig> <ezvalue key="attrTitle">my title</ezvalue> <ezvalue key="attrDesc">my description</ezvalue> <ezvalue key="attrColor">blue</ezvalue> <ezvalue key="attrUrl">eznode://86</ezvalue> </ezconfig> </eztemplate> </section>
Attachments
Issue Links
- relates to
-
EZP-30944 Wrong icon for editing attributes of Inline custom
- Closed