Opened 15 years ago
Closed 13 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)
Change History (5)
Changed 15 years ago by
Attachment: | removeformat.patch added |
---|
comment:1 Changed 15 years ago by
Cc: | gilles@… added |
---|---|
Summary: | Make "Remove" work on block without selection → Make "removeformat" work even without selection |
comment:2 Changed 15 years ago by
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>.
Removeformat patch