JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.2
[ckeditor.git] / _source / plugins / removeformat / plugin.js
index 84d7947..d54bfb3 100644 (file)
@@ -103,7 +103,10 @@ CKEDITOR.plugins.removeformat =
                                                        if ( tagsRegex.test( currentNode.getName() ) )\r
                                                                currentNode.remove( true );\r
                                                        else\r
+                                                       {\r
                                                                currentNode.removeAttributes( removeAttributes );\r
+                                                               editor.fire( 'removeFormatCleanup', currentNode );\r
+                                                       }\r
                                                }\r
 \r
                                                currentNode = nextNode;\r
@@ -170,3 +173,10 @@ CKEDITOR.config.removeFormatTags = 'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,
  * @example\r
  */\r
 CKEDITOR.config.removeFormatAttributes = 'class,style,lang,width,height,align,hspace,valign';\r
+\r
+/**\r
+ * Fired after an element was cleaned by the removeFormat plugin.\r
+ * @name CKEDITOR#removeFormatCleanup\r
+ * @event\r
+ * @param {Object} data.element The element that was cleaned up.\r
+ */\r