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.setupEventHandling();
this.publisher = publisher ? publisher : function() {};
this.textHandler = new TextHandler(this);
};
this.wlxmlListener.listenTo(wlxmlDocument);
this.wlxmlDocument = wlxmlDocument;
this.reloadRoot();
- this.setupEventHandling();
},
reloadRoot: function() {