fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix
[fnpeditor.git]
/
modules
/
documentToolbar
/
documentToolbar.js
diff --git
a/modules/documentToolbar/documentToolbar.js
b/modules/documentToolbar/documentToolbar.js
index
a2a1567
..
e364e99
100644
(file)
--- a/
modules/documentToolbar/documentToolbar.js
+++ b/
modules/documentToolbar/documentToolbar.js
@@
-33,15
+33,10
@@
return function(sandbox) {
wlxmlTag = split[0];
\r
wlxmlClass = split[1];
\r
}
\r
wlxmlTag = split[0];
\r
wlxmlClass = split[1];
\r
}
\r
- if(window.getSelection().isCollapsed) {
\r
- //view.insertNewNode(wlxmlTag, wlxmlClass);
\r
- }
\r
- else {
\r
- //this.wrapWithNodeRequest(wlxmlTag, wlxmlClass);
\r
- }
\r
sandbox.publish('newNodeRequested', wlxmlTag, wlxmlClass);
\r
sandbox.publish('newNodeRequested', wlxmlTag, wlxmlClass);
\r
+ } else {
\r
+ sandbox.publish('command', btn.attr('data-btn'), btn.attr('data-meta'));
\r
}
\r
}
\r
- //sandbox.publish('command', btn.attr('data-btn'), btn.attr('data-meta'));
\r
}
\r
});
\r
},
\r
}
\r
});
\r
},
\r