fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing canvas.createList
[fnpeditor.git]
/
modules
/
rng
/
rng.js
diff --git
a/modules/rng/rng.js
b/modules/rng/rng.js
index
7c39d0f
..
a1fe65e
100644
(file)
--- a/
modules/rng/rng.js
+++ b/
modules/rng/rng.js
@@
-254,11
+254,7
@@
return function(sandbox) {
sandbox.getModule('documentCanvas').toggleGrid(toggle);
\r
},
\r
newNodeRequested: function(wlxmlTag, wlxmlClass) {
\r
sandbox.getModule('documentCanvas').toggleGrid(toggle);
\r
},
\r
newNodeRequested: function(wlxmlTag, wlxmlClass) {
\r
- if(window.getSelection().isCollapsed) {
\r
sandbox.getModule('documentCanvas').insertNewNode(wlxmlTag, wlxmlClass);
\r
sandbox.getModule('documentCanvas').insertNewNode(wlxmlTag, wlxmlClass);
\r
- } else {
\r
- sandbox.getModule('documentCanvas').wrapSelectionWithNewNode(wlxmlTag, wlxmlClass);
\r
- }
\r
},
\r
command: function(cmd, meta) {
\r
sandbox.getModule('documentCanvas').command(cmd, meta);
\r
},
\r
command: function(cmd, meta) {
\r
sandbox.getModule('documentCanvas').command(cmd, meta);
\r