+ alert( 'You must be in WYSIWYG mode!' );\r
+}\r
+\r
+function InsertText()\r
+{\r
+ // Get the editor instance that we want to interact with.\r
+ var oEditor = CKEDITOR.instances.editor1;\r
+ var value = document.getElementById( 'txtArea' ).value;\r
+\r
+ // Check the active editing mode.\r
+ if ( oEditor.mode == 'wysiwyg' )\r
+ {\r
+ // Insert as plain text.\r
+ // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#insertText\r
+ oEditor.insertText( value );\r
+ }\r
+ else\r
+ alert( 'You must be in WYSIWYG mode!' );\r