Opened 9 years ago
Last modified 7 years ago
#13553 confirmed Bug
Dropdowns shouldn’t show any option when multiple styles, fonts or formats are selected
Reported by: | Jakub Ś | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Support | Cc: |
Description
- Clear editor
- Insert below code into editor and select all contents with Ctrl+A
<p><span style="font-family:arial,helvetica,sans-serif">test arial</span></p> <h1>test H1</h1> <p><span style="font-family:comic sans ms,cursive">test comic</span></p>
Result: Font dropdown shows Arial. In general, dropdowns reflect the beginning of selection.
Expected result: Dropdown shouldn’t show any value as current behaviour gives false impression that whole content has this type of font assigned.
Change History (3)
comment:1 Changed 9 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 8 years ago by
comment:3 Changed 7 years ago by
Issue on Github - https://github.com/ckeditor/ckeditor-dev/issues/525
#16865 was marked as duplicate.
There is a pretty good comment made there: "for the case where you have
font in comic sans | plain text
and you want to apply Comic Sans to all text, you will first need to disable Comic Sans and then apply it again". This could probably be avoided if style from dropdown hasn't been selected if selection doesn't contain only text with e.g. Comic Sans.