Opened 14 years ago
Closed 14 years ago
#6966 closed Bug (fixed)
<p> Tag Gets Added in Editor Text
Reported by: | Sufiyan Ansari | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.3 |
Component: | Core : Keystrokes | Version: | 3.0 |
Keywords: | IE | Cc: |
Description
I have set the configuration file to not show <p> tag at the beginning and end of the editor text using the property "config.enterMode = CKEDITOR.ENTER_BR;". It works fine at initial load of editor control, however when I write something in the control and the use backspace key to remove it and then write something else then it adds the <p> tag at the beginning and end of the editor text.
Attachments (3)
Change History (12)
Changed 14 years ago by
Attachment: | Steps to Reproduce.doc added |
---|
comment:1 Changed 14 years ago by
Component: | General → Core : Keystrokes |
---|---|
Keywords: | IE added |
Status: | new → pending |
This should be an IE only problem? When backspace is pressed on empty content, browser forces a P element to be opened.
comment:2 Changed 14 years ago by
Status: | pending → confirmed |
---|---|
Version: | 3.5 → 3.0 |
#7048 has been marked as DUP.
comment:3 Changed 14 years ago by
Changed 14 years ago by
Attachment: | 6966.patch added |
---|
comment:4 Changed 14 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | confirmed → review |
Proposed patch works with the following case which unfortunately broken in [879]:
- Select all then press one character key.
- Actual Result: New char inserted into a new paragraph.
comment:5 Changed 14 years ago by
Milestone: | → CKEditor 3.5.3 |
---|
comment:6 Changed 14 years ago by
Status: | review → review_failed |
---|
At least on enterMode BR:
- Load an empty editor.
- Focus the editor and type 3 characters.
- Press BACKSPACE 3 times.
Note that a pargraph was created.
Changed 14 years ago by
Attachment: | 6966_2.patch added |
---|
comment:7 Changed 14 years ago by
Status: | review_failed → review |
---|
True, a robust hack takes even more time ;)
comment:8 Changed 14 years ago by
Status: | review → review_passed |
---|
comment:9 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6486].
Steps to reproduce