fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Layout informs its views on being shown
[fnpeditor.git]
/
modules
/
documentCanvas
/
documentCanvas.js
diff --git
a/modules/documentCanvas/documentCanvas.js
b/modules/documentCanvas/documentCanvas.js
index
bd959fe
..
51acbf3
100644
(file)
--- a/
modules/documentCanvas/documentCanvas.js
+++ b/
modules/documentCanvas/documentCanvas.js
@@
-84,7
+84,7
@@
return function(sandbox) {
anchor.before(newNode)
\r
else
\r
anchor.after(newNode);
\r
anchor.before(newNode)
\r
else
\r
anchor.after(newNode);
\r
- this.selectNode(new
Node
);
\r
+ this.selectNode(new
wlxmlNode.Node(newNode), {moveCarret: true}
);
\r
//isDirty = true;
\r
sandbox.publish('contentChanged');
\r
},
\r
//isDirty = true;
\r
sandbox.publish('contentChanged');
\r
},
\r
@@
-108,7
+108,7
@@
return function(sandbox) {
newNode.before(prefix);
\r
newNode.after(suffix);
\r
\r
newNode.before(prefix);
\r
newNode.after(suffix);
\r
\r
- this.selectNode(new
Node
);
\r
+ this.selectNode(new
wlxmlNode.Node(newNode), {moveCarret: true}
);
\r
//isDirty = true;
\r
sandbox.publish('contentChanged');
\r
}
\r
//isDirty = true;
\r
sandbox.publish('contentChanged');
\r
}
\r
@@
-135,7
+135,7
@@
return function(sandbox) {
newNode.before(prefixNode);
\r
newNode.after(suffixNode);
\r
\r
newNode.before(prefixNode);
\r
newNode.after(suffixNode);
\r
\r
- this.selectNode(new
Node
);
\r
+ this.selectNode(new
wlxmlNode.Node(newNode), {moveCarret: true}
);
\r
//isDirty = true;
\r
sandbox.publish('contentChanged');
\r
}
\r
//isDirty = true;
\r
sandbox.publish('contentChanged');
\r
}
\r