I am using FCKeditor_2.6.4 [latest version till now]. I am doing this using javascript.
Here goes my code:
I am replacing my textarea with the fckeditor dynamically [I mean not on body load]. Everything is working fine. But the fckeditor does not preserve the format of textarea. I have quoted text as value in the textarea [like:
>---- OriginalMessage ----
>From: "@ My site"
>To: john@test.com
>CC: thetest@test.com
>Sent: 03/26/2009 16:06:55
>Subject: At my Notification: dfsd
>
>Hello SanjayT,
>
>tedn has made a new appointment.
>
]
But the fckeditor shows all the quoted text in a single paragraph, with no formatting at above.
[Like:
>---- OriginalMessage ---->From: "@ My site">To: john@test.com>CC: thetest@test.com>Sent: 03/26/2009 16:06:55>Subject: At my notification: dfsd>>Hello SanjayT,>>tedn has made a new appointment.
>
]
Could there be some trick that I be able to restore the original format in the fckeditor.
Thanks in advance.
Here goes my code:
var oFCKeditor = new FCKeditor( 'jstxt_message' ) ; oFCKeditor.BasePath = "./fckeditor/" ; oFCKeditor.CheckBrowser = false; //oFCKeditor.DisplayErrors = false ; oFCKeditor.ReplaceTextarea() ;
I am replacing my textarea with the fckeditor dynamically [I mean not on body load]. Everything is working fine. But the fckeditor does not preserve the format of textarea. I have quoted text as value in the textarea [like:
>---- OriginalMessage ----
>From: "@ My site"
>To: john@test.com
>CC: thetest@test.com
>Sent: 03/26/2009 16:06:55
>Subject: At my Notification: dfsd
>
>Hello SanjayT,
>
>tedn has made a new appointment.
>
]
But the fckeditor shows all the quoted text in a single paragraph, with no formatting at above.
[Like:
>---- OriginalMessage ---->From: "@ My site">To: john@test.com>CC: thetest@test.com>Sent: 03/26/2009 16:06:55>Subject: At my notification: dfsd>>Hello SanjayT,>>tedn has made a new appointment.
>
]
Could there be some trick that I be able to restore the original format in the fckeditor.
Thanks in advance.
Re: ReplaceTextarea method not preserving the textarea's format
Re: ReplaceTextarea method not preserving the textarea's format
This worked miracle. Thanks a lot!