summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-10-29 14:47:58 +0100
committerChristophe Matthieu <chm@odoo.com>2015-10-29 15:31:42 +0100
commit5b5f89e2bec678ad683eacd681ba84bbe48a4441 (patch)
tree63fcf8d6f82330270cbf6ba47262cd2babcba18c /addons/web_editor/static/src
parent8ebe4b2d566573482cc14b2130b8253bb2ba0078 (diff)
[FIX] web_editor: select default text of the snippet when click on the text
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js
index 227b94ca6f6..79db510bf6a 100644
--- a/addons/web_editor/static/src/js/snippets.editor.js
+++ b/addons/web_editor/static/src/js/snippets.editor.js
@@ -316,11 +316,11 @@ var BuildingBlock = Widget.extend({
$("body").toggleClass("editor_has_snippets", !!number);
// select all default text to edit (if snippet default text)
- /*self.$snippets.find('.oe_snippet_body, .oe_snippet_body *')
+ self.$snippets.find('.oe_snippet_body, .oe_snippet_body *')
.contents()
.filter(function() {
return this.nodeType === 3 && this.textContent.match(/\S/);
- }).parent().addClass("o_default_snippet_text");*/
+ }).parent().addClass("o_default_snippet_text");
$(document).on("mouseup", ".o_default_snippet_text", function (event) {
$(event.target).selectContent();
});