Hello,
first thanks for the awesome FCKEditor, it's a really nice piece of work.
I am currently programming a lightweight email client with HTML email functionality in mind.
The problem is, how can I quote HTML message displayed in FCKEditor (so it will add a '>' character at the beginning of each line of the email)?
This is really easy to do in plaintext, but in FCKEditor it's not that easy - I've been playing with this for a while now (some JavaScript hacks, etc...), but I haven't come up with a solution right now.
Thanks in advance for any help.
Have a nice day.
M.
first thanks for the awesome FCKEditor, it's a really nice piece of work.
I am currently programming a lightweight email client with HTML email functionality in mind.
The problem is, how can I quote HTML message displayed in FCKEditor (so it will add a '>' character at the beginning of each line of the email)?
This is really easy to do in plaintext, but in FCKEditor it's not that easy - I've been playing with this for a while now (some JavaScript hacks, etc...), but I haven't come up with a solution right now.
Thanks in advance for any help.
Have a nice day.
M.
Re: Problem with E-mail quoting
That may help to understand the problem.
Re: Problem with E-mail quoting
Message:
Hello John,
how are you?
Jane
And if I reply, I will obviously get the following message:
--- Jane wrote: ---
>Hello John,
>how are you?
>
>Jane
Maybe you're just misunderstanding what I mean by "E-mail quoting" - I'm used to call it this way, maybe I am wrong (correct me please).
Thanks for your help.
Re: Problem with E-mail quoting
I don't think you can do it with just FCKEditor, this is something you'll code AFTER the data is sent from the editor to your script.
Re: Problem with E-mail quoting
Thanks for your reply.

It should not be after, but before, because the user wants to see the "quoted" message when composing. You know, the input the FCKEditor gets in my email application is in pure HTML. The problem is, that I haven't figured out how to properly (pre)parse it to know what each line of it (HTML) exactly looks like (you know there could be DIVs, SPANs, line-breaks, etc...) - so I thought that some kind of direct manipulation via FCKEditor would insert the characters I need, to the right place
But if you know about something (in PHP) that can properly handle HTML input and gives me array of all lines of that HTML, please let me know. I'd very grateful.
Have a nice day.