fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: canvas fix - check for the case when mutation concerns already detached text...
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
documentElement.js
diff --git
a/src/editor/modules/documentCanvas/canvas/documentElement.js
b/src/editor/modules/documentCanvas/canvas/documentElement.js
index
8a5193b
..
d40ca9b
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/documentElement.js
+++ b/
src/editor/modules/documentCanvas/canvas/documentElement.js
@@
-154,6
+154,9
@@
$.extend(DocumentNodeElement.prototype, {
detach: function(isChild) {
var parents;
detach: function(isChild) {
var parents;
+ if(this.gutterGroup) {
+ this.gutterGroup.remove();
+ }
if(_.isFunction(this.children)) {
this.children().forEach(function(child) {
child.detach(true);
if(_.isFunction(this.children)) {
this.children().forEach(function(child) {
child.detach(true);