Opened 10 years ago
Last modified 10 years ago
#12246 confirmed New Feature
Highlight the default value in richcombo if default label is set
Reported by: | Wiktor Walc | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Support | Cc: |
Description (last modified by )
Reported through support channel. Original request is pasted below. Note that the default value should be probably highlighted using a different style than a value that was manually selected by a user.
This is because:
- it should be impossible to unselect the default font, which means that we should differentiate it visually
- the default font should be unselected "automatically" only when user selects different value
- the current behavior of richcombo should rather change as well - clicking on a default value should not result in the default value being applied to the content once again as it is done right now:
CKEditor with font_defaultLabel : 'Arial'
, after selecting Arial
in Font Name combo:
<p>This is <span style="font-family:arial,helvetica,sans-serif">some sample </span> text.</p>
The "default" style should be applied to the content only, if the style of the content has been already modified by the user, e.g. set the style back to Arial in the middle of the sentence in "Comic Sans":
<p><span style="font-family:comic sans ms,cursive">This is <span style= "font-family:arial,helvetica,sans-serif">some sample</span> text.</span></p>
(now repeating Arial make sense)
We found a small issue with font_defaultLabel and fontSize_defaultLabel. When these are set, the CKEditor does properly show them selected. But if you open the associated dropdown, they are not highlighted to indicate they are selected.
Screen capture 1: font and font size are properly displayed when using font_defaultLabel and fontSize_defaultLabel
Screen capture 2: font is not highlighted. Same thing for font size.
Screen capture 3: this is what we would expect when setting the font_defaultLabel setting
Attachments (3)
Change History (6)
Changed 10 years ago by
Attachment: | ImageDisplayZSupport.png added |
---|
Changed 10 years ago by
Attachment: | ImageDisplayZSupport (1).png added |
---|
Changed 10 years ago by
Attachment: | ImageDisplayZSupport (2).png added |
---|
comment:1 Changed 10 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 10 years ago by
Status: | new → confirmed |
---|
comment:3 Changed 10 years ago by
Keywords: | Support added |
---|