X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/9f174539a3cc0869845fbdca08aa2d1d3e784847..8254ff82e19d41b2a66a4549165b924084ed6a52:/modules/documentCanvas/canvas/canvas.js?ds=sidebyside diff --git a/modules/documentCanvas/canvas/canvas.js b/modules/documentCanvas/canvas/canvas.js index ba7daef..6131e4e 100644 --- a/modules/documentCanvas/canvas/canvas.js +++ b/modules/documentCanvas/canvas/canvas.js @@ -53,7 +53,10 @@ $.extend(Canvas.prototype, { + (endSpace && (spanParent || spanAfter) ? ' ' : ''); } else { + var oldLength = this.data.length; this.data = $.trim(this.data); + if(this.data.length === 0 && oldLength > 0) + this.data = ' '; } });