
Originally Posted by
leocor
Hello,
what should I add to params to have a new html message instead of plain text?
Thanks in advance,
Leo
p.s. where can I see the parameters and all API. I'm confused. I can just create zimlets joining and glueing different snippets I find on the forum: I feel not very professional
Look at zimbra source code
.
To always create a html message, you can add the param "composeMode" :
Code:
// Tries to open the compose view on its own.
var composeController = AjxDispatcher.run("GetComposeController");
if(composeController) {
var appCtxt = window.top.appCtxt;
var zmApp = appCtxt.getApp();
var newWindow = zmApp != null ? (zmApp._inNewWindow ? true : false) : true;
var params = {action:ZmOperation.NEW_MESSAGE, inNewWindow:newWindow,
toOverride:null, subjOverride:null, extraBodyText:null, callback:null, composeMode:DwtHtmlEditor.HTML}
composeController.doAction(params); // opens asynchronously the window.
this.displayStatusMessage("Trying to open a new message dialog. Please wait ...");
}