Opened 2 years ago

Last modified 2 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

  1. Prepare CKEditor with below configuration and content:
    var editor = CKEDITOR.replace( 'editor1', {
    	extraAllowedContent : 'span[id]',
    });
    
    <p><span class="marker" id="abc">test</span></p>
    
  2. 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 console CKEDITOR.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 2 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 2 years ago by Marek Lewandowski

Priority: NormalNice to have (we want to work on it)

comment:3 Changed 2 years ago by Mateusz Samsel

Owner: set to Mateusz Samsel
Status: confirmedassigned

comment:4 Changed 2 years ago by Mateusz Samsel

Status: assignedreview
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy