fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Breaking node at beginning/end
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvas
/
documentElement.js
diff --git
a/modules/documentCanvas/canvas/documentElement.js
b/modules/documentCanvas/canvas/documentElement.js
index
7e5824b
..
0309136
100644
(file)
--- a/
modules/documentCanvas/canvas/documentElement.js
+++ b/
modules/documentCanvas/canvas/documentElement.js
@@
-143,14
+143,14
@@
DocumentNodeElement.prototype = new DocumentElement();
$.extend(DocumentNodeElement.prototype, {
append: function(params) {
$.extend(DocumentNodeElement.prototype, {
append: function(params) {
- manipulate(this, params, 'append');
+
return
manipulate(this, params, 'append');
},
before: function(params) {
},
before: function(params) {
- manipulate(this, params, 'before');
+
return
manipulate(this, params, 'before');
},
after: function(params) {
},
after: function(params) {
- manipulate(this, params, 'after');
+
return
manipulate(this, params, 'after');
},
children: function() {
var toret = [];
},
children: function() {
var toret = [];
@@
-341,6
+341,8
@@
$.extend(DocumentTextElement.prototype, {
succeedingChildren.forEach(function(child) {
newElement.append(child);
});
succeedingChildren.forEach(function(child) {
newElement.append(child);
});
+
+ return {first: parentElement, second: newElement};
},
});
},
});