Ticket #5697 (closed Bug: invalid)

Opened 4 years ago

Last modified 4 years ago

Textarea formating is lost when it is converted as CKEditor

Reported by: Senthil Owned by:
Priority: High 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

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

Change History

Changed 4 years ago by Senthil

Changed 4 years ago by Senthil

comment:1 Changed 4 years ago by Senthil

  • Version set to 3.1

comment:2 Changed 4 years ago by alfonsoml

  • Status changed from new to closed
  • Resolution set to invalid

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 4 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 4 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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy