fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
empty text nodes after spans
[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
c0dd361
..
daa37ad
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/documentElement.js
+++ b/
src/editor/modules/documentCanvas/canvas/documentElement.js
@@
-241,6
+241,9
@@
$.extend(DocumentNodeElement.prototype, {
// })
this.dom.css('display', what);
this._container().css('display', what);
// })
this.dom.css('display', what);
this._container().css('display', what);
+ },
+ children: function() {
+ return [];
}
});
}
});
@@
-275,7
+278,7
@@
$.extend(DocumentTextElement.prototype, {
if(text === '') {
text = utils.unicode.ZWS;
}
if(text === '') {
text = utils.unicode.ZWS;
}
- if(text !== this.
getText()
) {
+ if(text !== this.
dom.contents()[0].data
) {
this.dom.contents()[0].data = text;
}
},
this.dom.contents()[0].data = text;
}
},