summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-09-28 11:07:30 +0000
committerqsm-odoo <qsm@odoo.com>2020-09-28 15:09:44 +0000
commit0f65015b1b0a849bf109df11fd18a9e3a62820e4 (patch)
tree69eff0a67396a6d186ee2593fc29186e687a105c /addons/website/static/src/xml
parent9dfb85b494efeec7786d345315977b9bcea63b82 (diff)
[FIX] web_editor, *: show text tools in style tab only
*: website As the text editor is still the summernote one, this improvement was made possible through a series of hack. It has to be reviewed once the new editor is ready. This makes the text tools only appear in the style tab by switching to it as soon as the summernote tools are updated. To prevent flickering, css and js hacks had to be made. This also moves the undo/redo buttons in the top bar with another hack: those simulates click on the hidden summernote ones. Part of https://github.com/odoo/odoo/pull/58638
Diffstat (limited to 'addons/website/static/src/xml')
-rw-r--r--addons/website/static/src/xml/website.editor.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml
index 0f3eb714224..e3fecaf2189 100644
--- a/addons/website/static/src/xml/website.editor.xml
+++ b/addons/website/static/src/xml/website.editor.xml
@@ -12,7 +12,11 @@
<!-- Editor top bar which contains the summernote tools and save/discard buttons -->
<t t-name="website.editorbar">
<div class="o_we_website_top_actions">
- <form>
+ <div class="o_we_external_history_buttons">
+ <button type="button" data-action="undo" class="btn btn-secondary fa fa-undo"/>
+ <button type="button" data-action="redo" class="btn btn-secondary fa fa-repeat"/>
+ </div>
+ <form class="ml-auto">
<button type="button" class="btn btn-secondary" data-action="cancel" accesskey="j">Discard</button>
<button type="button" class="btn btn-primary" data-action="save" accesskey="s">Save</button>
</form>