Opened 8 years ago
Last modified 8 years ago
#17009 review Bug
insertText splits spans with id attribute in to two
Reported by: | Jakub Ś | Owned by: | Mateusz Samsel |
---|---|---|---|
Priority: | Nice to have (we want to work on it) | Milestone: | |
Component: | General | Version: | 4.0 |
Keywords: | Cc: |
Description
Steps to reproduce
- Prepare CKEditor with below configuration and content:
var editor = CKEDITOR.replace( 'editor1', { extraAllowedContent : 'span[id]', }); <p><span class="marker" id="abc">test</span></p>
- Put selection here and insert any special character
#
using Special Character dialog<p><span class="marker" id="abc">te^st</span></p>
. Alternatively you can ma a selection and execute the following command in browser consoleCKEDITOR.insatnces.editor1.insertText( '#' )
Expected result
<p><span class="marker" id="abc">te#st</span></p>
Actual result
The span gets split in two: <p><span class="marker" id="abc">te</span><span class="marker">#st</span></p>
Other details (browser, OS, CKEditor version, installed plugins)
Problem can be reproduced at least from CKEditor 4.0.
Change History (5)
comment:1 Changed 8 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 8 years ago by
Priority: | Normal → Nice to have (we want to work on it) |
---|
comment:3 Changed 8 years ago by
Owner: | set to Mateusz Samsel |
---|---|
Status: | confirmed → assigned |
comment:4 Changed 8 years ago by
Status: | assigned → review |
---|
PR: https://github.com/ckeditor/ckeditor-dev/pull/430