From a9d7f5e766907c0ed1c9f5a11a1158e1f5bde8f6 Mon Sep 17 00:00:00 2001 From: Steve MARECHAL Date: Wed, 13 Aug 2008 16:39:28 +0000 Subject: [PATCH] dojo editor modified --- calexium_lib/web/CXM_dojo.anubis | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index 7d1b488..88999ce 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -365,13 +365,33 @@ public define HTML_Off_Form content). -public define HTML_Off_Form +public define HTML_In_Form dojo_editor ( - List(CoreAttrs) attributes, - HTML_Off_Form text + List(TextAreaOption) attributes, + HtmlId id, + WebArgName name, + String text, )= - div([attr("dojoType", "dijit.Editor"), attr("style", "overflow:auto"), - attr("extraPlugins", "['createLink','insertImage',{name:'dijit._editor.plugins.FontChoice', command: 'fontName', generic: true},'fontSize']") - . attributes], text). + text_area([input_attrs([ + attr("dojoType", "dijit.Editor"), attr("style", "overflow:auto") . + [attr("extraPlugins" , "['createLink','insertImage',{name:'dijit._editor.plugins.FontChoice', command: 'fontName', generic: true},'fontSize']")]]) + . attributes], "", id, name, init(text), 0, 0). + public define HTML_In_Form + dojo_button + ( + HtmlId html_id, + String name, + String iconclass, + Maybe(String) tip_msg, + String execute, + )= + literal(" + " + + if tip_msg is + { + failure then "", + success(tip) then + "" + tip + "" + }). -- libgit2 0.21.4