Changes between Initial Version and Version 3 of Ticket #10496


Ignore:
Timestamp:
Jun 3, 2013, 11:10:26 AM (9 years ago)
Author:
Piotrek Koszuliński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10496

    • Property Status changed from new to confirmed
    • Property Cc kagupta@… added
  • Ticket #10496 – Description

    initial v3  
    11To reproduce:
    22
    3 1. Use below code for editor
     31. Use below code for editor:
    44{{{     
    5         CKEDITOR.replace( 'editor1', {
    6                                 coreStyles_bold : { element : 'b', overrides : 'strong' },
    7                                 allowedContent : true
    8                 });     
     5CKEDITOR.replace( 'editor1', {
     6        coreStyles_bold: { element: 'b', overrides: 'strong' },
     7        allowedContent: true
     8});     
    99}}}
    10 2. try to paste HTML containing strong tag (you can paste sample text from other editor, even other browser)
    11 Result: strong tag is left untouched on paste.
    1210
    13 While coreStyles_ work well with initial content and when button e.g Bold is pressed (B tag is inserted) they fail when content with strong tag gets pasted.[[BR]]
    14 Please also note if you remove {{{allowedContent : true}}} property all works as expected.
     112. try to paste HTML containing strong tag (you can paste sample text from other editor, even other browser).
     12
     13* Result: `strong` tag is left untouched on paste.
     14* Expected: `strong` tag should be transformed to `b` tag.
     15
     16While `coreStyles_*` work well with initial content (`strong` tags are transformed to `b`) and when e.g. Bold is pressed (`b` tag is inserted), they fail when content is pasted.
     17
     18Please also note if you remove `allowedContent: true` property all works as expected.
    1519
    1620Problem can be reproduced from CKEditor 4.1.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy