Set toolbar attribute of the RichText widget

The toolbar attribute is used in set_readonly.

issue7241
review44791002
This commit is contained in:
Cédric Krier committed 2018-03-22 19:34:30 +01:00
1 parent 59918ccc77
commit 9ae0b3a4f0
1 file changed
+1 -1
+1 -1
View File
@@ -1814,7 +1814,7 @@ function eval_pyson(value){
'class': this.class_ + ' panel panel-default'
});
if (parseInt(attributes.toolbar || '1', 10)) {
this.get_toolbar().appendTo(this.el);
this.toolbar = this.get_toolbar().appendTo(this.el);
}
this.input = this.labelled = jQuery('<div/>', {
'class': 'richtext mousetrap',