Add toolbar attribute for richtext widget

issue3551
review9741002
This commit is contained in:
Sebastián Marró
2016-11-01 12:29:18 +01:00
parent 21e4b96fea
commit 227da247f6
4 changed files with 16 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add toolbar attribute for richtext widget
* Add PYSON widget
* Allow to define the text color and background color in calendar view
* Allow to override cache implementation
+3
View File
@@ -243,6 +243,9 @@ Display a field of the object with the value of the current record.
* ``filename_visible``: Only for Binary fields, boolean that enables the
display of the filename.
* ``toolbar``: Only for Rich Text widget, boolean that enables the
display of the Rich Text toolbar. The default value is 1.
* ``yexpand``: see in common-attributes-yexpand_.
* ``yfill``: see in common-attributes-yfill_.
+2
View File
@@ -103,6 +103,8 @@ attlist.field &= [a:defaultValue = "1"] attribute completion { "0" | "1" }?
attlist.field &= attribute string { text }?
attlist.field &= [a:defaultValue = "1"] attribute factor { text }?
attlist.field &= attribute filename { text }?
attlist.field &=
[a:defaultValue = "0"] attribute toolbar { "0" | "1" }?
image = element image { attlist.image, empty }
attlist.image &= attribute name { text }
attlist.image &= [ a:defaultValue = "1" ] attribute colspan { text }?
+10
View File
@@ -363,6 +363,16 @@
<attribute name="filename"/>
</optional>
</define>
<define name="attlist.field" combine="interleave">
<optional>
<attribute name="toolbar" a:defaultValue="1">
<choice>
<value>0</value>
<value>1</value>
</choice>
</attribute>
</optional>
</define>
<define name="image">
<element name="image">
<ref name="attlist.image"/>