Changes between Initial Version and Version 9 of Ticket #10537


Ignore:
Timestamp:
Jun 17, 2013, 7:41:53 AM (11 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10537

    • Property Keywords remove <p> when click on source removed
    • Property Status changed from new to confirmed
    • Property Version changed from 4.1.2 to 4.1
    • Property Summary changed from In 4.1.2 config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P; <p> tag remove to shiftEnterMode set to CKEDITOR.ENTER_P doesn't report P tag to ACF
  • Ticket #10537 – Description

    initial v9  
    1 If your editor is configure in following mode then <P> tags are remove with single <br>. it should not replace <p> which we add by shift enter and if it is so then i want to replace it with double <br>.
     1**EDITED**[[BR]]
    22
    3 config.enterMode = CKEDITOR.ENTER_BR;
    4 config.shiftEnterMode = CKEDITOR.ENTER_P;
     31. Configure editor in the following way:
     4{{{
     5var editor = CKEDITOR.replace( 'editor1', {     
     6                                    toolbar:[
     7                                                { name: 'document', items : [ 'Source' ] }, { name: 'basicstyles', items: [ 'Bold', 'Italic' ] }, { name: 'styles', items: [ 'Format' ] }
     8
     9                                        ],
     10                                        enterMode : CKEDITOR.ENTER_BR,
     11                                        shiftEnterMode : CKEDITOR.ENTER_P
     12}}}
     13
     142. Go to page with editor, switch to Source and **PASTE** {{{this<p>issue</p>}}}
     153. Switch to WYSIWYG and to Source one more time
     164. Result is {{{this<br />issue}}}. The same thing happens for this code:
     17{{{
     18<p>issue</p>
     19this
     20<p>issue</p>
     21<p>issue</p>
     22}}}
     23
     24It seems to me that ShiftEnterMode doesn't report P tag to ACF. To confirm this I have added {{{ { name: 'styles', items: [ 'Format' ] } }}} to toolbar and this time it has worked without problems.
     25
     26**NOTES:** [[BR]]
     271. Problem can be reproduced from CKEditor 4.1
     282. It doesn't occur if you turn off ACF - {{{allowedContent : true}}} or add plugin which reports P tag to ACF
     293. There is different issue (I'm not 100% sure if this is a bug) when you write in editor. Please see #10543.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy