X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fdom%2Ftext.js;h=dfb46d5037d5fd8898b935132b1eb8cf3ba29b2b;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=a1eb6908d0a70876e35b7a97a7fc3e2f46b321f3;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/dom/text.js b/_source/core/dom/text.js index a1eb690..dfb46d5 100644 --- a/_source/core/dom/text.js +++ b/_source/core/dom/text.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -67,6 +67,11 @@ CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype, return this.$.nodeValue; }, + setText : function( text ) + { + this.$.nodeValue = text; + }, + /** * Breaks this text node into two nodes at the specified offset, * keeping both in the tree as siblings. This node then only contains