Opened 10 years ago

Closed 7 years ago

#5496 closed New Feature (duplicate)

Make "removeformat" work even without selection

Reported by: Gilles van den Hoven Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: SVN (CKEditor) - OLD
Keywords: Cc: gilles@…

Description

When you select 1 char inside a block level element, and click on the remove button, the formatting of that block element is removed.

However, when there is no selection, the 'remove' plugin does nothing. It should be either disabled when there is no selection, or remove the formatting of the current block element.

Since this last method is expected, i wrote a patch file for this which is attached.

Attachments (1)

removeformat.patch (948 bytes) - added by Gilles van den Hoven 10 years ago.
Removeformat patch

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Gilles van den Hoven

Attachment: removeformat.patch added

Removeformat patch

comment:1 Changed 10 years ago by Gilles van den Hoven

Cc: gilles@… added
Summary: Make "Remove" work on block without selectionMake "removeformat" work even without selection

comment:2 Changed 10 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

For me it looks more logical to have it removing the format of the collapsed selection, so you just start typing plain text with no formatting.

I mean. If we have this situation (where ^ is the caret):

<p>This is some <b>bo^ld</b> text.</p>.

... when executing it we have:

<p>This is some <b>bo</b>^<b>ld</b> text.</p>.

comment:3 Changed 9 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.x

Milestone CKEditor 3.x deleted

comment:4 Changed 7 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

DUP of #5590

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy