summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-08-12 15:06:14 +0200
committerqsm-odoo <qsm@odoo.com>2016-08-19 17:44:28 +0200
commitcc2cd9108c44771c6908bdc95bc23486a712e23c (patch)
treed96412c3b4dbea76806fc96fdd6cb4e88ed8c334 /addons/web_editor/static/src
parent74d7de465e38dc6a16aa6e395aa733ddb2e01240 (diff)
[IMP] web_editor: put the "Quote" style after "Header" styles
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/summernote.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/summernote.js b/addons/web_editor/static/src/js/summernote.js
index 6e52936cc27..c9e1be20ce6 100644
--- a/addons/web_editor/static/src/js/summernote.js
+++ b/addons/web_editor/static/src/js/summernote.js
@@ -931,6 +931,8 @@ options.keyMap.mac['ESCAPE'] = 'cancel';
options.keyMap.mac['UP'] = 'up';
options.keyMap.mac['DOWN'] = 'down';
+options.styleTags = ['p', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote'];
+
$.summernote.pluginEvents.insertTable = function (event, editor, layoutInfo, sDim) {
var $editable = layoutInfo.editable();
var dimension = sDim.split('x');