No need for the tarball, all you have to do is to add the following line in the compose.html file (/skins/default/templates) and put the jscripts directory from the tinyMCE archive in the root of your RoundCube install.
<script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "exact", theme : "compose-body", plugins : "advimage,advlink,emotions,insertdatetime,searchreplace,contextmenu,paste", theme_advanced_buttons1_add : "fontselect,fontsizeselect", theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor", theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", content_css : "example_word.css", plugi2n_insertdate_dateFormat : "%Y-%m-%d", plugi2n_insertdate_timeFormat : "%H:%M:%S", external_link_list_url : "example_link_list.js", external_image_list_url : "example_image_list.js", flash_external_list_url : "example_flash_list.js", file_browser_callback : "fileBrowserCallBack", paste_use_dialog : false, theme_advanced_resizing : true, theme_advanced_resize_horizontal : false, theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;", paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : false, paste_strip_class_attributes : "all", paste_remove_spans : false, paste_remove_styles : false }); function fileBrowserCallBack(field_name, url, type, win) { // This is where you insert your custom filebrowser logic alert("Filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type); // Insert new URL, this would normaly be done in a popup win.document.forms[0].elements[field_name].value = "someurl.htm"; } </script>
I did this and the compose text area gets converted into an area editable by tinyMCE after which RoundCube fails to recognise the the text in the message body and the recipient sees the html code and not the html output.
On 7/14/06, Bram Vogelaar bram@attachmentgenie.com wrote:
I can bgt guess , to be honest in order to make a proper guestemates I would have to have a copy of your integration Can you make a tarball available to us? bram
On 7/13/06 9:33 PM, "Nipun Jain" jain.nipun@gmail.com wrote:
So how do I set RoundCube to get to send correct headers (text/html). Also, I need to disable / remove the warning given by RoundCube about empty mail body when using tinyMCE
On 7/14/06, *Bram Vogelaar* bram@attachmentgenie.com wrote:
Hello nipun
Let me start with congratulating you with the tinMCE integration, which is a feature I am looking forward to integrating into my personal RC setup.
Secondly I think there are two separate issues here
-- RC isnt properly notified by Tiny Mce that an email body has been composed, when clearly the text is there , seeing your full text came in. unfortunately I don't have a direct a solution for this but perhaps this will help you further
-- The Html garbage is caused by incorrect headers I believe html formatted message require a header looking something like this
Content-type: text/html; charset="US-ASCII" Content-transfer-encoding: quoted-printable which should easily be integrated in either the Tiny Mce or a RC check before sending
bram
On 7/13/06 8:21 PM, "Nipun Jain" jain.nipun@gmail.com wrote:
I am using the latest SVN release of rouncube and wanted to add HTML editor facility fo composing mails.
I integrated tinyMCE Rich Text Editor with Roundcube. It correctly shows the required toolbars in the compose text area. But the problem is that, when I compose a HTML message using tinyMCE, then on sending the mail, RoundCube asks if I want to send the message without any text whereas the text does exist in the message body.
If I choose to ignore this message and send the mail anyway, then I do receive the email sent at the recipient's address, but in plain ASCII, that is with all the HTML source shown instead of a HTML message.
Anybody having any idea as to how to resolve this?
Regards, Nipun Jain.