-
Notifications
You must be signed in to change notification settings - Fork 40
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
Customize Wysiwyg editor #113
Comments
Could be done with a data-attribute on the Better register javascript Pell configuration object and use those. I'd need a few directions before creating a PR. |
The actions are defined here: SyliusRichEditorPlugin/src/Resources/views/Admin/app.html.twig Lines 86 to 103 in 26a41cb
But it is for all wysiwyg fields. It could be possible to pass the actions directly to an attribute of the field, using SyliusRichEditorPlugin/assets/js/app.js Line 32 in 26a41cb
|
Another way could be to register somewhere more Pell configurations identified by a specific name, and use that name in the attribute to setup pell for each wysiwyg field. |
I'm wondering whether this plugin should be so opinionated on the js text editor to use altogether. We need at least a way to configure Pell's toolbar globally and for individual UiElements but why not allow replacing the editor library? |
If you want to replace the library you are free to do so ;). |
Sure, I just meant supporting / documenting text editing lib switch |
Yes but why documenting a feature which doesn't exist yet? :p |
I'm actually making the scope of this issue wider than just "toolbar customization" |
I need a field with only the
h3
and paragraph levelsI'd like to add a configuration in my form builder to customize the Wysiwyg toolbar.
The text was updated successfully, but these errors were encountered: