All,
I've made more progress on integrating TinyMCE as a WYSIWYG HTML
editor. It now has the following capabilities:
- TinyMCE editor replaces the normal textfield when composing a
message if the "Prefer HTML" configuration variable is "true."
- User can toggle between HTML and Plain text editors while
composing a message.
- When going from plain text to HTML, the existing contents are
surrounded with "<pre>" tags
- When going from HTML to plain text, the existing contents are
run through the html2text converter (on the server using an
XMLHttpRequest call)
- If
the HTML editor is used to compose a message, the outgoing MIME message
is built with a top-level
"text/html" content type. Otherwise, the normal "text/plain" content
type is included.
- The "emoticon" pictures that TinyMCE provides
are added as inline parts to the MIME message (this is fluff, but hey,
I like the emoticons!)
- Reply e-mails have blockquote tags around the original message
- Forward e-mails have a nicely formatted header prepended
The tiny_mce distribution is now contained within the program/js/
directory of RC. Since TinyMCE contains quite a few files (including
binary image files), it would be difficult to provide a "patch"
formatted file to download. For those that want to play with it or
test it out, you can download a whole distribution (based on Subversion
revision 276) here:
http://stadtherr.bounceme.net/files/roundcubemail_r276.tar.gz
Take a look if you'd like, and let me know whether you think this is an
appropriate feature to include in the trunk.
Thanks!
-Eric