I have been working on integrating Moxiecode's TinyMCE editor (version 2.0.6.1) into RoundCube, for composing HTML e-mail messages. The changes are extensive enough that it would be difficult to release as a simple patch, so I've packaged up an entire distribution (based on the recently releasd "Beta 2" version) that includes my changes as well as the TinyMCE distribution:
http://stadtherr.bounceme.net/files/roundcubemail_tinymce_v0.1beta2.tar.gz
The changes include:
- 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 "
" tags
- When going from HTML to plain text, the existing contents are run through the html2text converter
- If the HTML editor is used, the MIME message is built with a top-level "text/html" content type. Otherwise, the normal "text/plain" content type is included.
- The "emoticon" or "smiley" 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
Enjoy!
-Eric
cheers for this! this is a major addon which will hopefully get the support of everyone. Me thinks this should be added as a perminant feature to the next roundcube release! :P
I've noticed one thing, In firefox the smilies box and colors are not aligned right. and the spell checker says its all correct even though i put errors in their!
wonderfull :D i didn`t try it out yet buf looking from your previous releases of tinymce it`s just wonderfull :)
Hi Eric
Thank you very much for your great work!
I agree with some of the other guys that this 'patch' should be included in the next official release of Roundcube.
Normal users expect HTML-editing capabilities in a modern webmail application and this is one of the last features that Roundcube misses compared to other webmail solutions (like Hotmail, Gmail, Yahoo etc.).
Are you discussing the inclusion of your 'patch' with the primary developers of Roundcube? If not, why?
And just a couple of minor errors I've noticed with your latest release:
- The spellchecking isn't working with the TinyMCE editor. I can see from the TinyMCE projects website (please see http://tinymce.moxiecode.com/punbb/viewtopic.php?id=4212) that there is some spell checking capabilities included in the TineMCE project as such. Would it be a possibility to port that to your implementation of the editor in Roundcube?
- The users signature isn't inserted into the message
Nothing too serious, but still...
Hope you have the time and ressources to take a look at these minor errors (as I suck at PHP and therefore cannot correct the errors myself).
And a feature request:
Several of my users are asking for the possibility to make HTML signatures. Would it be a problem to turn the signature editing into a TinyMCE editor as well?
Once again: thank you for your work. It is a major (and needed) upgrade of Roundcube!
Best
Rasmus Wehner
Denmark
Rasmus and others,
Thanks for the feedback! Some comments:
- I deliberately haven't done much with spell checking, since there's a lot of discussion going on in the developer community as far as what the spell-checking approach should be within RoundCube (Google Spell? A standalone server that could call GoogleSpell or others? ASpell?). Once that's decided, I'll evaluate how it relates to TinyMCE.
- The signature thing is a good comment - I don't use a signature so I hadn't noticed that deficiency. I'll include HTML signatures in the next version that I make available.
I'm currently talking with the primary developers to work out a plan for branching and/or integrating this work. Stay tuned!
-Eric
Thx for your effort, this is a great modification. I really think it should become part of the actual program...
This is awesome. Thanks for posting!
Just to add my support for HTML signatures - this is one of the few things preventing the app from being used more widely for business use.
It's a teriffic tool and with this wysiwig editor integration and the possibility of signatures in a future release it will definitely be an option that will be considered by many more users.
You do good job!
I think it should be in RoundCube on next release.
Problem whit spell I think it should be resolved by aspell because most webhosting provider install it on server and it's multilang.
Can somebody plz post some screenshot's to see it ???
Great module Eric thank you very much.
Just curious if you have an update on the signature add-on.
Thanks again.
I have the HTML editing and saving of the signature working. All I have left to do is change the JavaScript client code to be able to insert the HTML signature into the message being edited (initially and if you change identities). The code is easy enough, I just need to work out some timing issues relative to the loading of the page and the initialization of the TinyMCE editor.
Stay tuned for updates...
-Eric
Thank you EricS,
I need put a image in email, the image i send like a attach file, but i dont know how i can place at email body.
are there any way to do this?
Thank you,
PD:
Sorry but my english, i need study a little more :D
Quote from: EricS Stay tuned for updates...
-Eric
Eric, really nice initiative you have made here.
I like many others are eagerly waiting for the update ;)
This combined with the other mod I spotted to create and administrate email accounts from within Roundcube are definitely going to make this software the best.
I really like your "patch." I just have one question/problem. When I am going to forward and email that has some pictures in it, they do not actually show up in email editor (or when I send it). But if i view the original email roundcube displays the email correctly and shows the pictures.
Is there some way that I can fix this? It would be great to be able to forward an email that is displaying some pictures.
Thanks!
Dave
Quote from: EricS The changes include:
- If the HTML editor is used, the MIME message is built with a top-level "text/html" content type. Otherwise, the normal "text/plain" content type is included.
If the HTML editor is used, is a textual version of the message created as well, and included automatically? If not, could it be an option?
Looks good though,
Steve
The TinyMCE code is now part of the trunk in Subversion (rev345). If you feel like grabbing an "unstable" Subversion release, feel free, otherwise you can wait for the next milestone release.
I've added HTML signature support, as well as multipart/alternative message sending (with plain and HTML parts).
-Eric
Hi Eric
This is great news. I'll try to get a SVN version right away.
Thank you for your support. It makes RoundCube sooo much better!
Best
Rasmus Wehner
Denmark
I've been wondering about HTML message composition. I'll download and play with this right away.
Out of curiosity, why the choice of TinyMCE as the WYSIWYG editor? Sorry if this has been brought up and discussed already. Even though Ive been playing around with RoundCube for quite a while I've neglected coming to and participating in the forums until today.
Manually implement TinyMCE ... how to??
Quote from: ninext Manually implement TinyMCE ... how to??
why ?
I've just a RC installation .... and I'm scared abuot an upgrade??
Within the SVN TinyMCE is working because other forum members spend time to make it work...
so why do a manually installations... ?
I've installed the version with TinyMCE included .... everything works ... but now when I send a message with one attachment the recipient receive the attachment corrupted (each file is 50 or 60 B) ..
How can I do??? ...
Are you still seeing this behavior? Can you post the "source" text of the corrupted mail message, either in the forum or in a ticket?
-Eric