RichText field type should provide generic tags rendered through the templating component.
Both inline and block level tag should be provided.
These tags should accept configuration in the form of arbitrary hash structure, same as is implemented for embeds: https://github.com/ezsystems/ezpublish-kernel/pull/758
Template used for rendering of the tag and configuration hash should be configurable in YAML.
Hash configuration would be used in the future by the online editor.
Template should be mapped from the name (attribute) of the tag.
Both template and configuration should be overridable through YAML configuration.
Example (internal format):
Rendered by default with eZPublishCoreBundle:ezrichtext:custom.html.twig:
Or configured to be rendered with custom template: