X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fdom%2Ftext.js;h=4a667438a3d616cf601f3daf821c8ba3cec6a309;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=5df6929643b09ead0bbf8489d84f037de20729df;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_source/core/dom/text.js b/_source/core/dom/text.js index 5df6929..4a66743 100644 --- a/_source/core/dom/text.js +++ b/_source/core/dom/text.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, 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