Reviewers: ,


Please review this at http://codereview.tryton.org/231002/

Affected files:
  M CHANGELOG
  M trytond/ir/ui/form.rnc
  M trytond/ir/ui/form.rng
  M trytond/res/request.xml


Index: CHANGELOG
===================================================================

--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,4 @@
+* Add richtext widget for WYSIWYG editor
 * Store session in database
 * New Wizard design
 * Add pyson.Id

Index: trytond/ir/ui/form.rnc
===================================================================

--- a/trytond/ir/ui/form.rnc
+++ b/trytond/ir/ui/form.rnc
@@ -91,6 +91,7 @@
     | "many2many"
     | "image"
     | "progressbar"
+    | "richtext"
   }?
 attlist.field &= attribute fill { "0" | "1" }?
 attlist.field &= attribute yexpand { "0" | "1" }?

Index: trytond/ir/ui/form.rng
===================================================================

--- a/trytond/ir/ui/form.rng
+++ b/trytond/ir/ui/form.rng
@@ -280,6 +280,7 @@
           <value>many2many</value>
           <value>image</value>
           <value>progressbar</value>
+          <value>richtext</value>
         </choice>
       </attribute>
     </optional>

Index: trytond/res/request.xml
===================================================================

--- a/trytond/res/request.xml
+++ b/trytond/res/request.xml
@@ -46,7 +46,7 @@
                     <notebook colspan="6">
                         <page string="Request" id="request">
                             <separator name="body" colspan="4"/>
-                            <field name="body" colspan="4"/>
+ <field name="body" colspan="4" widget="richtext"/>
                             <field name="history" colspan="4"/>
                             <label name="trigger_date"/>
                             <field name="trigger_date"/>
@@ -180,7 +180,7 @@
                     <field name="subject" colspan="3"/>
                     <label name="priority"/>
                     <field name="priority"/>
-                    <field name="body" colspan="6"/>
+                    <field name="body" colspan="6" widget="richtext"/>
                     <label name="date_sent"/>
                     <field name="date_sent" colspan="3"/>
                     <newline/>



--
[email protected] mailing list

Reply via email to