Opened 11 years ago
Last modified 11 years ago
#13412 closed Bug
Enter mode for shift+enter incorrect — at Version 1
| Reported by: | Szymon Cofalik | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.0 |
| Keywords: | Cc: |
Description (last modified by )
Steps to reproduce:
- Initialize CKEDITOR with those options:
CKEDITOR.replace( 'editor1', { extraPlugins: 'enterkey', enterMode: CKEDITOR.ENTER_P, shiftEnterMode: CKEDITOR.ENTER_DIV, forceEnterMode: true }); - Write some text in the editor then try to break it with shift+enter.
Result: <p> has been inserted.
Expected result: <div> has been inserted.
The same bug occurs when you set
enterMode: CKEDITOR.ENTER_DIV, shiftEnterMode: CKEDITOR.ENTER_P
Then <div> is inserted instead of <p>. It works fine only if one of options is CKEDITOR.ENTER_BR
You can test this on sample samples/plugins/enterkey/enterkey.html
