diff options
Diffstat (limited to 'addons/web_editor/static/src/js/widgets.js')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets.js b/addons/web_editor/static/src/js/widgets.js index 7508ce1c392..236b1dc4fc8 100644 --- a/addons/web_editor/static/src/js/widgets.js +++ b/addons/web_editor/static/src/js/widgets.js @@ -597,7 +597,13 @@ rte.Class.include({ init: function (EditorBar) { this._super.apply(this, arguments); computeFonts(); - } + }, + onEnableEditableArea: function ($editable) { + if ($editable.data('oe-type') === "monetary") { + $editable.attr('contenteditable', false); + $editable.find('.oe_currency_value').attr('contenteditable', true); + } + }, }); /* list of font icons to load by editor. The icons are displayed in the media editor and |
