From 9ae0b3a4f06eb6ee604bc694d3e1b0b48de2af92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 Mar 2018 19:34:30 +0100 Subject: [PATCH] Set toolbar attribute of the RichText widget The toolbar attribute is used in set_readonly. issue7241 review44791002 --- src/view/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/form.js b/src/view/form.js index c42c851521..0e49acd763 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -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('
', { 'class': 'richtext mousetrap',