From 8025205bb4dee4d92a85de86a0cc4436cfb70149 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 9 Sep 2019 15:51:47 +0000 Subject: [IMP] web_editor, *: introduce wysiwyg frontend loader * website_forum, website_profile - Share some code between website_forum and website_profile by exposing a function in web_editor to instantiate a wysiwyg instance on a textarea - Use no-lazy loaded JS to add a visual loading effect while the wysiwyg is not yet available. This is made in preparation of task-2024197 (see https://github.com/odoo/odoo/pull/35749) Thanks to @stefanorigano closes odoo/odoo#36581 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/web_editor.frontend.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'addons/web_editor/static/src/scss/web_editor.frontend.scss') diff --git a/addons/web_editor/static/src/scss/web_editor.frontend.scss b/addons/web_editor/static/src/scss/web_editor.frontend.scss index 7df7cacccb4..58a314bb7ad 100644 --- a/addons/web_editor/static/src/scss/web_editor.frontend.scss +++ b/addons/web_editor/static/src/scss/web_editor.frontend.scss @@ -3,3 +3,14 @@ transform: none !important; } } + +.o_wysiwyg_loader { + @extend .form-control:disabled; + pointer-events: none; + min-height: 100px; + color: transparent; +} +.o_wysiwyg_loading { + @include o-position-absolute($top: 50%, $left: 50%); + transform: translate(-50%, -50%) +} -- cgit v1.2.3