From 512ae81920727a104355553204482c3feebda6ea Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 2 Dec 2015 13:29:06 +0100 Subject: [FIX] web_editor: add code view in debug mode to allow jinja insertion --- addons/web_editor/static/src/js/iframe.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'addons/web_editor/static/src/js/iframe.js') diff --git a/addons/web_editor/static/src/js/iframe.js b/addons/web_editor/static/src/js/iframe.js index c6913bb39d9..2f494cd041c 100644 --- a/addons/web_editor/static/src/js/iframe.js +++ b/addons/web_editor/static/src/js/iframe.js @@ -59,6 +59,16 @@ snippet_editor.Class.include({ } }); +rte.Class.include({ + config: function ($editable) { + var config = this._super($editable); + if ($.deparam($.param.querystring()).debug !== undefined) { + config.airPopover.splice(7, 0, ['view', ['codeview']]); + } + return config; + } +}); + translator.Class.include({ start: function () { var res = this._super(); -- cgit v1.2.3