+Write here a quote from one of your customer. Quotes are are great way to give confidence in your products or services.
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index c3cb83b4b54..78c51dd9907 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -223,6 +223,10 @@ footer { width: 100%; } +.row { + min-height: 32px; +} + /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */ .oe_structure.oe_editable.oe_empty:empty, .oe_editable[data-oe-type=html]:empty, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child { background-image: url("/website/static/src/img/drag_here.png"); diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index a8c461476a2..4a79b7b4a97 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -144,6 +144,9 @@ footer float: left width: 100% +.row + min-height: 32px + /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */ .oe_structure.oe_editable.oe_empty:empty, .oe_editable[data-oe-type=html]:empty, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index a014f596a97..55a920eab28 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1114,9 +1114,12 @@ this.$target.addClass("col-md-offset-" + this.$target.prevAll(".oe_drop_to_remove").length); this._super(); }, + hide_remove_button: function() { + this.$overlay.find('.oe_snippet_remove').toggleClass("hidden", !this.$target.siblings().length); + }, onFocus : function () { this._super(); - this.$overlay.find('.oe_snippet_remove').toggleClass("hidden", !this.$target.siblings().length); + this.hide_remove_button(); }, on_clone: function () { var $clone = this.$target.clone(false); @@ -1124,13 +1127,16 @@ _class += ' col-md-1'; $clone.attr("class", _class); this.$target.after($clone); + this.hide_remove_button(); return false; }, on_remove: function () { if (!this.$target.siblings().length){ return false; } - return this._super(); + this._super(); + this.hide_remove_button(); + return false; }, on_resize: function (compass, beginClass, current) { if (compass !== 'w') @@ -1174,7 +1180,7 @@ self.$target.carousel(+$(this).data('slide-to')); }); this.$target.attr('contentEditable', 'false'); - this.$target.find('.oe_structure, blockquote').attr('contentEditable', 'true'); + this.$target.find('.oe_structure, .content>.row').attr('contentEditable', 'true'); this.$target.carousel('pause'); }, diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 43411ea5ece..437074ba189 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -302,7 +302,7 @@
+Write here a quote from one of your customer. Quotes are are great way to give confidence in your products or services.