Details
-
Type:
Story
-
Status: Closed
-
Priority:
High
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2.4.0-beta1
-
Component/s: Online Editor & Rich Text field type
-
Labels:None
-
Sprint:[2.4] - Sprint 5
-
Story Points:1
Description
Each custom tag has an ezcontent property, that contains the tag's main content. Until v2.3.0, it is not editable in the UI, and is used to store the output/preview of a tag.
It must be made editable using a textarea. In this iteration, the textarea must be added to the custom tag editing tooltip. In a further version, it should be editable directly from the Rich Text Editor.
For extensibility purpose, an extension mechanism should be included, so that the tag's content can be tampered with:
- when it is saved to state, before it get previewed in the RTE
- before it is restored from state to the textarea
A use-case for this is the implementation of the rawhtml custom tag, whose content is HTML that must be encoded.
Opened PR ezplatform-admin-ui#619 that adds support for editing a custom tag's ezcontent (not an attribute, but the tag's main content). It should make the implementation of a textblock attribute unnecessary.