var TextHandler = function(canvas) {this.canvas = canvas; this.buffer = null};
$.extend(TextHandler.prototype, {
handle: function(node, text) {
var TextHandler = function(canvas) {this.canvas = canvas; this.buffer = null};
$.extend(TextHandler.prototype, {
handle: function(node, text) {
- this.canvas.wlxmlDocument.transform('setText', {node:node, text: text});
+ //this.canvas.wlxmlDocument.transform('setText', {node:node, text: text});
+ node.transform('smartxml.setText', {text: text});
mutation.target.data = mutation.target.data.replace(utils.unicode.ZWS, '');
canvas._moveCaretToTextElement(canvas.getDocumentElement(mutation.target), 'end');
}
mutation.target.data = mutation.target.data.replace(utils.unicode.ZWS, '');
canvas._moveCaretToTextElement(canvas.getDocumentElement(mutation.target), 'end');
}
canvas.publisher('contentChanged');
var textElement = canvas.getDocumentElement(mutation.target),
canvas.publisher('contentChanged');
var textElement = canvas.getDocumentElement(mutation.target),
});
});
var config = { attributes: false, childList: false, characterData: true, subtree: true, characterDataOldValue: true};
});
});
var config = { attributes: false, childList: false, characterData: true, subtree: true, characterDataOldValue: true};
this.wrapper.on('mouseover', '[document-node-element], [document-text-element]', function(e) {
this.wrapper.on('mouseover', '[document-node-element], [document-text-element]', function(e) {