JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / core / dom / text.js
index 2cedd9b..dfb46d5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -67,6 +67,11 @@ CKEDITOR.tools.extend( CKEDITOR.dom.text.prototype,
                        return this.$.nodeValue;\r
                },\r
 \r
+               setText : function( text )\r
+               {\r
+                       this.$.nodeValue = text;\r
+               },\r
+\r
                /**\r
                 * Breaks this text node into two nodes at the specified offset,\r
                 * keeping both in the tree as siblings. This node then only contains\r