Opened 16 years ago
Last modified 14 years ago
#2976 review_failed Bug
plugin:basicstyle remove style at collapsed selection
Reported by: | Garry Yao | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Styles | Version: | 3.0 Beta 2 |
Keywords: | Cc: |
Description
Description
Current inline style system doesn't handle the case when selection is collapsed inside styled element correctly. A MS-Word mimics behavior should be provided to actually allow users to type in the middle with the style canceled.
Procedures
- Open the replace by code example page in IE6;
- Make selection as below:
<p>This is some <strong>sam^ple text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
- Click bold command to cancel the bold style
- Actual Result :
<p>This is some sample text. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
- Expected Result: The document remain unchanged, but when the user begin to type from this selection point, text should in unbold style.
<p>This is some <strong>sam^ple text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
- E.g after user type 'xxx' , document should result in :
<p>This is some <strong>sam</strong>xxx<strong>ple text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
Attachments (2)
Change History (13)
comment:1 Changed 16 years ago by
Component: | General → Core : Styles |
---|---|
Milestone: | CKEditor 3.0 → CKEditor 3.x |
comment:2 Changed 16 years ago by
Keywords: | Confirmed added |
---|---|
Milestone: | CKEditor 3.x → CKEditor 3.0 |
Type: | Task → Bug |
comment:3 Changed 16 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | new → assigned |
Changed 16 years ago by
Attachment: | 2976.patch added |
---|
comment:4 Changed 16 years ago by
Keywords: | Review? added |
---|
comment:5 Changed 16 years ago by
Milestone: | CKEditor 3.0 → CKEditor 3.x |
---|
comment:6 Changed 15 years ago by
Version: | SVN (FCKeditor) → CKEditor 3.0 Beta 2 |
---|
comment:8 follow-up: 10 Changed 14 years ago by
Status: | review → review_failed |
---|
I would go for the MS Word behavior, which is actually different. It removes the style from the current "word" (it expands the selection the word boundaries (including spaces).
In any case, this patch certainly needs updates.
comment:9 Changed 14 years ago by
Keywords: | Confirmed removed |
---|
comment:10 Changed 14 years ago by
Replying to fredck:
I would go for the MS Word behavior...
I can tell Microsoft Word Version 14 (2010) matches exactly the expected behavior described in ticket, which version are u having the above results?
comment:11 Changed 14 years ago by
I'm using Word 2007.
Anyway, at this stage, let's wait for outsiders feedback first.
See #3309 for more usability issue related to this bug.