[FIX] website editor: history can't take a snapshot if all editable zone is unactive
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user