X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/c11ad12846df3142b19a343144fe1d2a82b97569..105a4e9cdd9d1dffdff6411e7b7e83ff507c68e6:/src/editor/modules/documentCanvas/canvas/canvas.js diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index 96e3bea..d58ea7b 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -10,7 +10,7 @@ define([ ], function($, _, Backbone, logging, documentElement, keyboard, utils, wlxmlListener) { 'use strict'; -/* global document:false, window:false, Node:false */ +/* global document:false, window:false, Node:false, gettext */ var logger = logging.getLogger('canvas'); @@ -42,7 +42,13 @@ $.extend(TextHandler.prototype, { }, setText: function(text, node) { //this.canvas.wlxmlDocument.transform('setText', {node:node, text: text}); - node.setText(text); + node.document.transaction(function() { + node.setText(text); + }, { + metadata:{ + description: gettext('Changing text') + } + }); }