3 | | config.enterMode = CKEDITOR.ENTER_BR; |
4 | | config.shiftEnterMode = CKEDITOR.ENTER_P; |
| 3 | 1. Configure editor in the following way: |
| 4 | {{{ |
| 5 | var 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 | |
| 14 | 2. Go to page with editor, switch to Source and **PASTE** {{{this<p>issue</p>}}} |
| 15 | 3. Switch to WYSIWYG and to Source one more time |
| 16 | 4. Result is {{{this<br />issue}}}. The same thing happens for this code: |
| 17 | {{{ |
| 18 | <p>issue</p> |
| 19 | this |
| 20 | <p>issue</p> |
| 21 | <p>issue</p> |
| 22 | }}} |
| 23 | |
| 24 | It 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]] |
| 27 | 1. Problem can be reproduced from CKEditor 4.1 |
| 28 | 2. It doesn't occur if you turn off ACF - {{{allowedContent : true}}} or add plugin which reports P tag to ACF |
| 29 | 3. There is different issue (I'm not 100% sure if this is a bug) when you write in editor. Please see #10543. |