Opened 15 years ago

Last modified 14 years ago

#3355 confirmed New Feature

Update font name and size dropdowns

Reported by: Josh Nisly Owned by:
Priority: Normal Milestone:
Component: General Version: SVN (CKEditor) - OLD
Keywords: Cc:

Description

When positioning the cursor anywhere in the document, the font name and font size dropdowns are not updated. This can be reliably reproduced in the sample: http://www.fckeditor.net/nightly/fckeditor/_samples/default.html.

This seems like an obvious bug, but I couldn't find any tickets regarding it.

Change History (6)

comment:1 Changed 15 years ago by Artur Formella

Keywords: Confirmed added
Milestone: CKEditor 3.x
Summary: Font name and size dropdowns not updatedUpdate font name and size dropdowns
Type: BugNew Feature

comment:2 Changed 15 years ago by Josh Nisly

There seem to be two parts to this:

  • Using getComputedStyle to get the effective font size/name.
  • Smarter matching on font name (e.g. selecting the 'Arial' option when the font-family is 'Arial,Verdana,Sans-Serif'.)

Does this sound right? If so, I can work on implementing this.

comment:3 Changed 15 years ago by Garry Yao

Keywords: Pending added; Confirmed removed

I don't see this feature in V2, not sure if need to implement it.

comment:4 in reply to:  3 Changed 15 years ago by Artur Formella

Replying to garry.yao:

I don't see this feature in V2, not sure if need to implement it.

Yes, in V2 there wasn't this feature, but it is in OpenOffice, MS Office and Google Docs so we should also have it someday.

comment:5 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Confirmed added; Pending removed

highjinx_53's idea is nice. We could consider this only if the code to implement it is small and simple though, to avoid bloating the code further.

comment:6 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

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