Opened 13 years ago
Last modified 12 years ago
#8667 confirmed Bug
[Webkit] Enter works incorrectly into PRE blocks
Reported by: | Karen Ananiev | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Enter Key | Version: | 3.5.1 |
Keywords: | Webkit | Cc: |
Description
- Open editor and clear all content
- Apply Formatted paragraph format
- Type some chars and hit Shift+Enter or Enter
Outcome: cursor jumps to the start of the current line and new line is added before this one.
Change History (5)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Keywords: | Webkit added |
---|---|
Status: | new → confirmed |
Version: | 3.6.2 → 3.5.1 |
This got first broken in CKEditor 3.5.1 rev [6321]. When applying above TC you got the below:
<p> test test</p> <p> test</p> <pre> </pre> <p> </p>
After rev [6919] (CKE 3.6.1) the result changed to:
<pre> </pre> <pre> test</pre>
The current result described in ticket has been reproducible from CKEditor 3.6.1 rev [6992] and looks like this:
<pre> test</pre>
comment:3 Changed 13 years ago by
The one more use case:
- Type any text and select it with ctrl-shift-left arrow
- Apply any font name
- Unselect text with right arrow key
- Hit Enter and type text, select it with ctrl-shift-left arrow and apply another font name
Note that range is collapsed, cursor jumped to start of the paragraph and font name is not applied.
I noticed that setting new text to filling char node (fillingChar.setText()) collapses the range.
comment:4 Changed 13 years ago by
The one more use case:
- Type any text and select it with ctrl-shift-left arrow
- Apply any font name
- Unselect text with right arrow key
- Hit Enter and type text, select it with ctrl-shift-left arrow and apply another font name
@karena your last comment refers to bug #8617 and not this one.
It seems that issue related with filling char (selection plugin) #1272