-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add EditorExtension #21
Add EditorExtension #21
Conversation
408eec8
to
73f60ad
Compare
Failing tests has nothing todo with this PR the IntlExtension doesn't work like expected see: symfony/symfony#35309. Fixed in #22 |
{ | ||
return [ | ||
new TwigFilter('editor', [$this, 'editor'], ['is_safe' => ['html']]), | ||
new TwigFilter('editor_classes', [$this, 'editorClasses'], ['is_safe' => ['html']]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better naming suggestions welcome. /cc @luca-rath @thomasduenser @Quehnie @marcostastny @mfehr94 @mscharl @sabinebaer ...
73f60ad
to
de68e12
Compare
@alexander-schranz what do you think of something like symfony's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
@luca-rath would be interesting but sadly not sure how the |
e6d4655
to
619b1a7
Compare
This will add a
editor
andeditor_classes
twig filter.editor
Will wrap the given html with a div with a specific class.
editor_classes
Will add classes to specific tags.