diff -urp ./editors/js/ckeditor-3.0.js ../wysiwyg/editors/js/ckeditor-3.0.js --- ./editors/js/ckeditor-3.0.js 2009-10-23 04:11:02.000000000 +0200 +++ ../wysiwyg/editors/js/ckeditor-3.0.js 2009-10-27 21:00:04.000000000 +0100 @@ -174,6 +174,13 @@ Drupal.wysiwyg.editor.instance.ckeditor insert: function(content) { content = this.prepareContent(content); CKEDITOR.instances[this.field].insertHtml(content); + }, + getContent: function() { + return CKEDITOR.instances[this.field].getData(); + }, + setContent: function(content) { + content = this.prepareContent(content); + CKEDITOR.instances[this.field].setData(content); } }; diff -urp ./editors/js/fckeditor-2.6.js ../wysiwyg/editors/js/fckeditor-2.6.js --- ./editors/js/fckeditor-2.6.js 2009-06-22 05:00:15.000000000 +0200 +++ ../wysiwyg/editors/js/fckeditor-2.6.js 2009-10-27 20:59:43.000000000 +0100 @@ -151,6 +151,16 @@ Drupal.wysiwyg.editor.instance.fckeditor var instance = FCKeditorAPI.GetInstance(this.field); // @see FCK.InsertHtml(), FCK.InsertElement() instance.InsertHtml(content); + }, + + getContent: function() { + var instance = FCKeditorAPI.GetInstance(this.field); + return instance.GetData(); + }, + + setContent: function(content) { + var instance = FCKeditorAPI.GetInstance(this.field); + instance.SetHTML(content); } }; diff -urp ./editors/js/none.js ../wysiwyg/editors/js/none.js --- ./editors/js/none.js 2009-05-17 02:13:21.000000000 +0200 +++ ../wysiwyg/editors/js/none.js 2009-10-27 20:59:31.000000000 +0100 @@ -66,5 +66,13 @@ Drupal.wysiwyg.editor.instance.none = { else { editor.value += content; } + }, + getContent: function() { + var editor = document.getElementById(this.field); + return editor.value; + }, + setContent: function(content) { + var editor = document.getElementById(this.field); + editor.value = content; } }; diff -urp ./editors/js/tinymce-3.js ../wysiwyg/editors/js/tinymce-3.js --- ./editors/js/tinymce-3.js 2009-06-13 03:14:43.000000000 +0200 +++ ../wysiwyg/editors/js/tinymce-3.js 2009-10-27 20:59:16.000000000 +0100 @@ -209,6 +209,16 @@ Drupal.wysiwyg.editor.instance.tinymce = insert: function(content) { content = this.prepareContent(content); tinyMCE.execInstanceCommand(this.field, 'mceInsertContent', false, content); + }, + + getContent: function() { + var editor = tinyMCE.get(this.field); + return editor.getContent(); + }, + + setContent: function(content) { + content = this.prepareContent(content); + tinyMCE.execInstanceCommand(this.field, 'mceSetContent', false, content); } };