neos-simple-editor-extend
neos-simple-editor-extend copied to clipboard
Allow choosing the style from a dropdown
The are use cases where you should be able to select from a list of styles for the same piece of text. The current mechanism would generate a button for each style and they might stack, when an editor presses several buttons.
With a dropdown it could be enforced that one of a set of styles is only selected. This would also use less space in cases where more than 3 styles are available.
I just started working on a time critical custom implementation and would try to create a PR for this package when I'm done.
We actually don't need so much. My first implementation mostly works and I was able to use the SelectBox from Neos and the Highlight plugin from CK5 https://ckeditor.com/docs/ckeditor5/latest/features/highlight.html#demo
I would prefer to use the Neos StyleSelect component, but it might need to be extended to give all the options.
@breadlesscode it could make sense to use the Highlight Plugin also for the normal buttons at some point. But it's not urgent.
Thanks Seb for your support :)
Yes I think the StyleSelect should be fine. But atm I have no time to dive deeper in this component. I'm really curious to see what you implement :+1:
I'm actually finished with the clients implementation, just having a problem with CK and Neos itself. When you include plugins that have dependencies on the CK core, you get errors and warnings in the backend. Everything still seems to work, but I wouldn't put it into production this way. Will have a discussion with other UI people next week on how to solve this.
@Sebobo Any progress here? If not I will have a look at this issue :)
That would be an awesome feature.
Just came back from holiday and was focused on the RedirectHandler. Can start on this topic next week :) Maybe I'll just start a draft PR with some code and we can work on it together.
@breadlesscode finally took some time ;) You can already check out my draft PR #9 if you like.
Thank you :)
I will check that tomorrow
Open todos:
- [ ] (Optionally) Make it possible to select style options instead of just css classes
- [x] Enable previous button plugin again (disabled because of some CK duplicate import error)
- [ ] More testing
Sorry to keep you waiting. I did not forget you :)
This week I will have a look at your PR and hopefully fix the open Todos :+1:
Oh I can also do that, but was sick last week. But feel free to change stuff if you are faster than me ;)
Any update on this?