- canvas.doc().dom().find('#rng-module-documentCanvas-content').on('keyup', function() {
- manager.sandbox.publish('contentChanged');
- });
-
- canvas.doc().dom().on('mouseover', '[wlxml-tag]', function(e) {
- e.stopPropagation();
- manager.sandbox.publish('nodeHovered', canvasNode.create($(e.target)));
- });
- canvas.doc().dom().on('mouseout', '[wlxml-tag]', function(e) {
- e.stopPropagation();
- manager.sandbox.publish('nodeBlured', canvasNode.create($(e.target)));
- });
- canvas.doc().dom().on('click', '[wlxml-tag]', function(e) {
- e.stopPropagation();
- console.log('clicked node type: '+e.target.nodeType);
- manager.selectNode(canvasNode.create($(e.target)));
- });
-
- canvas.doc().dom().on('keyup', '#rng-module-documentCanvas-contentWrapper', function(e) {
- var anchor = $(window.getSelection().anchorNode);
+ // canvas.doc().dom().find('#rng-module-documentCanvas-content').on('keyup', function() {
+ // manager.sandbox.publish('contentChanged');
+ // });
+
+ // canvas.doc().dom().on('mouseover', '[wlxml-tag]', function(e) {
+ // e.stopPropagation();
+ // manager.sandbox.publish('nodeHovered', canvasNode.create($(e.target)));
+ // });
+ // canvas.doc().dom().on('mouseout', '[wlxml-tag]', function(e) {
+ // e.stopPropagation();
+ // manager.sandbox.publish('nodeBlured', canvasNode.create($(e.target)));
+ // });
+ // canvas.doc().dom().on('click', '[wlxml-tag]', function(e) {
+ // e.stopPropagation();
+ // console.log('clicked node type: '+e.target.nodeType);
+ // manager.selectNode(canvasNode.create($(e.target)));
+ // });
+
+ // canvas.doc().dom().on('keyup', '#rng-module-documentCanvas-contentWrapper', function(e) {
+ // var anchor = $(window.getSelection().anchorNode);