diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-09-23 13:45:36 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-09-24 09:36:41 +0200 |
| commit | 21c88933f78d13e0bd5c4d07e46a324fe70454c7 (patch) | |
| tree | 8cd8dc3a2d2f9ee89f423a3cafe48a6e0846f4af /addons/web_editor/static/src/js/editor.js | |
| parent | 69810ab9dd66fa80adb57d5ffbf098dc0515605a (diff) | |
[FIX] web_editor & website: don't display edit placeholder if the node have class oe_no_empty or oe_not_editable
Diffstat (limited to 'addons/web_editor/static/src/js/editor.js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/editor.js b/addons/web_editor/static/src/js/editor.js index 4480101bf6a..32b6d6b8d1d 100644 --- a/addons/web_editor/static/src/js/editor.js +++ b/addons/web_editor/static/src/js/editor.js @@ -98,8 +98,8 @@ editor.Class = Widget.extend({ }, display_placeholder: function () { var $area = $("#wrapwrap").find("[data-oe-model] .oe_structure.oe_empty, [data-oe-model].oe_structure.oe_empty, [data-oe-type=html]") - .addClass("oe_empty") - .attr("data-oe-placeholder", _t("Press The Top-Left Edit Button")); + .filter(".oe_not_editable") + .filter(".oe_no_empty"); this.on('rte:start', this, function () { $area.attr("data-oe-placeholder", _t("Write Your Text Here")); |
