Pluggable renderElement / renderLeaf #527
Closed
Mangatt
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
We need to find an easy way to do that from a plugin, I didn't find any yet. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, plugins like align wrap element in div just to add extra class. This can create some problems with some CSS selectors like
:last-child
or sibling selector.This could be solved with pluggable default renderer, the one which could modify properties of rendered element (like adding of classes). So instead of rendering something like:
you could render just:
which would not mess with main structure of document.
Beta Was this translation helpful? Give feedback.
All reactions