summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
61e73a2)
Handlers on canvas wrapper should be set only once, not with
every document load.
this.wrapper = $('<div>').addClass('canvas-wrapper').attr('contenteditable', true);
this.wlxmlListener = wlxmlListener.create(this);
this.loadWlxmlDocument(wlxmlDocument);
this.wrapper = $('<div>').addClass('canvas-wrapper').attr('contenteditable', true);
this.wlxmlListener = wlxmlListener.create(this);
this.loadWlxmlDocument(wlxmlDocument);
+ this.setupEventHandling();
this.publisher = publisher ? publisher : function() {};
this.textHandler = new TextHandler(this);
};
this.publisher = publisher ? publisher : function() {};
this.textHandler = new TextHandler(this);
};
this.wlxmlListener.listenTo(wlxmlDocument);
this.wlxmlDocument = wlxmlDocument;
this.reloadRoot();
this.wlxmlListener.listenTo(wlxmlDocument);
this.wlxmlDocument = wlxmlDocument;
this.reloadRoot();
- this.setupEventHandling();
},
reloadRoot: function() {
},
reloadRoot: function() {