#5697 closed Bug (invalid)
Textarea formating is lost when it is converted as CKEditor
Reported by: | Senthil | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | |
Component: | General | Version: | 3.1 |
Keywords: | Oracle | Cc: | Senthil, Pranav |
Description
In TextArea, enter some text data(with new line and space) and write a js function to convert that textarea to ckeditor. When we click on the js function, textarea is converted as ckeditor but the content is loosing the formatting.
I have attached a sample js fle and text file. Open the attached "replacebycodesample.html" file in the browser and copy the content from the text file(TestData.txt attached here). Now click on the ConvertEditor button and see the textarea, it will loose the formatting.
Attachments (2)
Change History (6)
Changed 15 years ago by
Attachment: | replacebycodesample.html added |
---|
Changed 15 years ago by
Attachment: | TestData.txt added |
---|
comment:1 Changed 15 years ago by
Version: | → 3.1 |
---|
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 Changed 15 years ago by
Our customer is having plain text documents entered inside the TextArea(in the older peoplesoft release) and when they upgarde to current peoplesoft release all the textareas are converted to ckeditor but the plain text documents are loosing the formating(Ex: newlines are not converted as <br>) and displayed in a single line. So the customer data exist in the textarea is having this formating problem after ckeditor is enabled for the textarea. Please provide a solution for this issue, since it is breaking the customer documents.
The sample data is plain text, if you want to see it in HTML view like that you must do first the conversion using whatever system that fits you: every line a paragraph, or everything a paragraph with <br> at each line, or divs, or two empty lines mean a new P. That's something that it's up to you.
If you want the source code to remain its format when you switch back to source, sorry but that's not possible using the browser as the editing host.