Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#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


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)

replacebycodesample.html (1.8 KB) - added by Senthil 14 years ago.
TestData.txt (84 bytes) - added by Senthil 14 years ago.

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by Senthil

Attachment: replacebycodesample.html added

Changed 14 years ago by Senthil

Attachment: TestData.txt added

comment:1 Changed 14 years ago by Senthil

Version: 3.1

comment:2 Changed 14 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

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.

comment:3 Changed 14 years ago by Senthil

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.

comment:4 Changed 14 years ago by Garry Yao

Please use our support channel instead of opening ticket for it.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy