Opened 14 years ago
Closed 14 years ago
#6107 closed Bug (fixed)
Remove block style via the list
Reported by: | Sa'ar Zac Elias | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.1 |
Component: | Core : Styles | Version: | 3.0 |
Keywords: | Cc: |
Description (last modified by )
Currently it's impossible to remove block styles via the combo by clicking on the active option.
Attachments (9)
Change History (32)
comment:1 Changed 14 years ago by
Owner: | set to Sa'ar Zac Elias |
---|---|
Status: | new → assigned |
Changed 14 years ago by
Attachment: | 6107.patch added |
---|
comment:2 Changed 14 years ago by
Status: | assigned → review |
---|
comment:3 follow-up: 6 Changed 14 years ago by
comment:4 Changed 14 years ago by
Milestone: | → CKEditor 3.5.1 |
---|
comment:5 Changed 14 years ago by
Status: | review → review_failed |
---|
The patch mixes "applyBlockStyle" and "removeBlockStyle" logic together which is bad.
comment:6 Changed 14 years ago by
Replying to tobiasz.cudnik:
Seems to be DUP of #5336.
We're talking of block style, no longer object style here.
comment:7 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Status: | review_failed → assigned |
Summary: | Remove object style via the list → Remove block style via the list |
Yep, block styles this time.
Changed 14 years ago by
Attachment: | 6107_2.patch added |
---|
comment:8 Changed 14 years ago by
Status: | assigned → review |
---|
comment:9 Changed 14 years ago by
Status: | review → review_failed |
---|
Two problems:
- Current implementation doesn't preserve other styles on block;
<h3 style="color: blue;background-color:blue">heading</h3>
- Format combo not aligned;
comment:10 Changed 14 years ago by
We could reuse "removeFromElement" function:
- Remove only styles in case of partial match;
- Revert block in case of full match.
Changed 14 years ago by
Attachment: | 6107_3.patch added |
---|
comment:11 Changed 14 years ago by
Status: | review_failed → review |
---|
comment:12 Changed 14 years ago by
Status: | review → review_failed |
---|
The patch fails the following TC:
- Remove "h1" format from the following content:
<div> <h1>^paragraph1</h1> </div>
- Expected Result:
<div> <p>paragraph1</p> </div>
- Actual Result:
<div> paragraph1 </div>
Changed 14 years ago by
Attachment: | 6107_4.patch added |
---|
comment:13 Changed 14 years ago by
Owner: | changed from Sa'ar Zac Elias to Garry Yao |
---|---|
Status: | review_failed → review |
comment:14 Changed 14 years ago by
Status: | review → review_failed |
---|
Using enterMode=BR and the following contents and selection:
<h3 style="color: red;"> Test</h3>
Removing the style should not put a BR on top (first element in the doc).
Changed 14 years ago by
Attachment: | 6107_5.patch added |
---|
comment:15 Changed 14 years ago by
Status: | review_failed → review |
---|
comment:16 Changed 14 years ago by
Status: | review → review_failed |
---|
Block removal does not handle extra styles/attributes.
Changed 14 years ago by
Attachment: | 6107_6.patch added |
---|
comment:17 Changed 14 years ago by
Owner: | changed from Garry Yao to Sa'ar Zac Elias |
---|---|
Status: | review_failed → review |
Changed 14 years ago by
Attachment: | 6107_7.patch added |
---|
comment:18 Changed 14 years ago by
Owner: | changed from Sa'ar Zac Elias to Garry Yao |
---|
A simplified patch to 6107_6.
comment:19 Changed 14 years ago by
Status: | review → review_failed |
---|
The new patch doesn't cover the case when you apply "red title" style and then remove "heading 3" style (result should be a styled DIV).
Changed 14 years ago by
Attachment: | 6107_8.patch added |
---|
comment:20 Changed 14 years ago by
Owner: | changed from Garry Yao to Sa'ar Zac Elias |
---|---|
Status: | review_failed → review |
Changed 14 years ago by
Attachment: | 6107_9.patch added |
---|
comment:21 Changed 14 years ago by
Owner: | changed from Sa'ar Zac Elias to Garry Yao |
---|
Though not related, I'd like to propose the alignment of behavior when removing inline style, e.g. remove bold style from the following content:
<p><strong style="color:red">sam[ple</strong> text].</p>
comment:22 Changed 14 years ago by
Status: | review → review_passed |
---|
As #6026 is already opened for the above case, let's just stack the patch to be used there. R+ for 6107_8.patch
comment:23 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6344].
Seems to be DUP of #5336.