#16992 closed Bug (invalid)
textarea with plain text and line breaks does not convert to pargraps
Reported by: | Edvardas | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce
- create textarea with multiple lines : eg "line 1\n line 2\n"
- init ckeditor with CKEDITOR.replace
- view source - https://jsfiddle.net/rxj8ewca/1/
Expected result
It should be displayed as same as result of function: CKEDITOR.tools.transformPlainTextToHtml some workaround i found - https://jsfiddle.net/rxj8ewca/3/
Actual result
it displays everything in one line..
Other details (browser, OS, CKEditor version, installed plugins)
using standard ckeditor from CDN
Change History (3)
comment:1 Changed 8 years ago by
Component: | Core : Parser → General |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Version: | 4.6.2 |
comment:2 Changed 8 years ago by
is it possible to init CKEDITOR on plain lines with function CKEDITOR.tools.transformPlainTextToHtml like some config parameter?
CKEditor expects encoded HTML inside textarea by default e.g.
or
If you want to use non-standard plain text and want it to keep formatting in the editor, you have used the right method.