Index: editors/js/ckeditor-3.0.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/editors/js/ckeditor-3.0.js,v retrieving revision 1.2.4.5 diff -u -p -r1.2.4.5 ckeditor-3.0.js --- editors/js/ckeditor-3.0.js 17 Nov 2009 15:31:33 -0000 1.2.4.5 +++ editors/js/ckeditor-3.0.js 14 Feb 2010 01:12:07 -0000 @@ -152,7 +152,7 @@ Drupal.wysiwyg.editor.instance.ckeditor if (typeof Drupal.wysiwyg.plugins[pluginName].invoke == 'function') { var pluginCommand = { exec: function(editor) { - var data = { format: 'html', node: editor.getSelection().getSelectedElement() }; + var data = { format: 'html', node: editor.getSelection().getSelectedElement() ? editor.getSelection().getSelectedElement().$ : editor.getSelection().getSelectedElement() }; // @todo This is NOT the same as data.node. data.content = data.node ? data.node.innerHTML : ''; Drupal.wysiwyg.plugins[pluginName].invoke(data, pluginSettings, editor.name); Index: editors/js/fckeditor-2.6.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/editors/js/fckeditor-2.6.js,v retrieving revision 1.16.2.3 diff -u -p -r1.16.2.3 fckeditor-2.6.js --- editors/js/fckeditor-2.6.js 13 Feb 2010 23:58:41 -0000 1.16.2.3 +++ editors/js/fckeditor-2.6.js 14 Feb 2010 01:13:48 -0000 @@ -107,7 +107,7 @@ Drupal.wysiwyg.editor.instance.fckeditor // Invoke the plugin's button. Execute: function () { if (typeof Drupal.wysiwyg.plugins[plugin].invoke == 'function') { - var data = { format: 'html', node: instance.FCKSelection.GetParentElement() }; + var data = { format: 'html', node: instance.FCKSelection.GetSelectedElement() || instance.FCKSelection.GetParentElement() }; // @todo This is NOT the same as data.node. data.content = data.node.innerHTML; Drupal.wysiwyg.plugins[plugin].invoke(data, pluginSettings, instance.FCK.Name);