Paste As Plain Text does not behave consistently
|Reported by:||gaurang.d.patel||Owned by:|
|Component:||Core : Pasting||Version:||3.2.1|
config.forcePasteAsPlainText is set to true and enterMode is CKEDITOR.ENTER_P
Following are 2 cases considered to generate this problem.
hello world <p>some paragraph</p>
When i copy it from browser and paste it into the CKEditor area it correctly convert that to
<p> hello world</p> <p> some paragraph</p>
<p>some paragraph</p> hello world
When i copy it from browser and paste it into the CKEditor area it will get converted to
<p> some paragraph<br /> hello world</p>
it add line break instead of adding paragraph. which is not as expected.
in both of the cases it should generate paragraphs for linebreaks.
Steps to Regenerate:
- Copy case 1 text from testData.html file attached and paste as plain text to CKEditor content area. It will generate out put as expected.
- Copy case 2 text from testData.html file and paste as plain text to CKEditor content area. It will generate a line break (br) instead of paragraph.
Change History (6)
Changed 5 years ago by gaurang.d.patel
comment:2 follow-up: ↓ 3 Changed 5 years ago by garry.yao
- Keywords Pending added; forcePasteAsPlainText enterMode removed