From 162d853ada5edc6b18544afc11929cdd6d0034fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A0n=20Todorovich?= Date: Mon, 24 Jan 2022 12:23:50 -0300 Subject: [PATCH] [FIX] web_widget_ckeditor: toolbar wrapping The toolbar should automatically wrap when there's not enough space. Closes #2114 --- web_widget_ckeditor/static/src/js/field_ckeditor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web_widget_ckeditor/static/src/js/field_ckeditor.js b/web_widget_ckeditor/static/src/js/field_ckeditor.js index 55002e252..cd59263fd 100644 --- a/web_widget_ckeditor/static/src/js/field_ckeditor.js +++ b/web_widget_ckeditor/static/src/js/field_ckeditor.js @@ -195,7 +195,10 @@ odoo.define("web_widget_ckeditor.field_ckeditor", function (require) { */ _getCKEditorConfig: async function () { const res = { - toolbar: {items: await this._getCKEditorToolbarItems()}, + toolbar: { + items: await this._getCKEditorToolbarItems(), + shouldNotGroupWhenFull: true, + }, language: CKEditorLanguageCode, image: { toolbar: [