Open jswiderski opened 7 years ago
The feature sounds reasonable, though it's not crucial for us ATM. We can get back to it at some point.
I've prepared the first, WIP implementation of this feature for font
plugin, it's on t/525
branch. It's already integrated with tableselection
plugin (or, more generally speaking, multiple ranges).
However there are some issues with new selection from the same element as the first one. Due to the fact how our selectionChange
works it's impossible to correctly detect changes. It would probably require some major changes in richcombo
plugin.
There is also need to implement this feature also for format
and styles
plugins.
+1 Facing same issue for font size, any update on this?
@akashbiz please add 👍 reaction to the main comment of this issue. As for the updates you can see that it has been tackled in #745 but it has not been updated recently. You can always apply the code from that PR and use patched version if it's important for you.
There are plenty of tutorials on how to do that around the need, google around and I'm sure you'll find it.
Are you reporting a feature or a bug?
Feature request
Check if the issue is already reported
https://dev.ckeditor.com/ticket/13553
Provide detailed reproduction steps (if any)
Expected result
Font dropdown doesn't show any font.
Actual result
Font dropdown shows font from first paragraph.
Other details
NOTE: This is how selection and styles work in the editor. Dropdowns always reflect beginning of selection. Perhaps here we could check if selection contains something more than one element and more than one font and if it does, simply not showing any font. Same goes for font-size, format and styles.