[FIX] website editor: history can't take a snapshot if all editable zone is unactive

This commit is contained in:
Christophe Matthieu
2015-01-08 11:01:42 +01:00
parent ce1583bf83
commit c2264aa267
@@ -649,7 +649,7 @@ define(['summernote/summernote'], function () {
this.makeSnap = function () {
var rng = range.create(),
elEditable = dom.ancestor(rng && rng.commonAncestor(), dom.isEditable) || $('.o_editable.note-editable:first')[0];
elEditable = dom.ancestor(rng && rng.commonAncestor(), dom.isEditable) || $('.o_editable:first')[0];
return {
editable: elEditable,
contents: elEditable.innerHTML,