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 Wiktor Walc)

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)

ImageDisplayZSupport.png (8.3 KB) - added by Wiktor Walc 10 years ago.
ImageDisplayZSupport (1).png (13.2 KB) - added by Wiktor Walc 10 years ago.
ImageDisplayZSupport (2).png (13.8 KB) - added by Wiktor Walc 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by Wiktor Walc

Attachment: ImageDisplayZSupport.png added

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

comment:1 Changed 10 years ago by Wiktor Walc

Description: modified (diff)

comment:2 Changed 10 years ago by Wiktor Walc

Status: newconfirmed

comment:3 Changed 10 years ago by Wiktor Walc

Keywords: Support added
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy