diff -urp wysiwyg_original/editors/js/ckeditor-3.0.js wysiwyg/editors/js/ckeditor-3.0.js --- wysiwyg_original/editors/js/ckeditor-3.0.js 2009-10-23 04:11:02.000000000 +0200 +++ wysiwyg/editors/js/ckeditor-3.0.js 2009-10-26 21:09:14.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 wysiwyg_original/editors/js/fckeditor-2.6.js wysiwyg/editors/js/fckeditor-2.6.js --- wysiwyg_original/editors/js/fckeditor-2.6.js 2009-06-22 05:00:15.000000000 +0200 +++ wysiwyg/editors/js/fckeditor-2.6.js 2009-10-26 20:55:22.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); + } + +}; \ No newline at end of file diff -urp wysiwyg_original/editors/js/none.js wysiwyg/editors/js/none.js --- wysiwyg_original/editors/js/none.js 2009-05-17 02:13:21.000000000 +0200 +++ wysiwyg/editors/js/none.js 2009-10-26 21:13:10.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 wysiwyg_original/editors/js/tinymce-3.js wysiwyg/editors/js/tinymce-3.js --- wysiwyg_original/editors/js/tinymce-3.js 2009-06-13 03:14:43.000000000 +0200 +++ wysiwyg/editors/js/tinymce-3.js 2009-10-26 20:52:31.000000000 +0100 @@ -11,6 +11,8 @@ * An object containing editor settings for each input format. */ Drupal.wysiwyg.editor.init.tinymce = function(settings) { +//console.log(settings); +//console.log(Drupal.settings.wysiwyg.plugins); // @see #454992: drupal_get_js() must not use 'q' as query string. if (tinymce.query == 'q') { tinymce.query = ''; @@ -209,6 +211,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); + } + +}; \ No newline at end of file