Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.3.2
[ckeditor.git]
/
_source
/
plugins
/
removeformat
/
plugin.js
diff --git
a/_source/plugins/removeformat/plugin.js
b/_source/plugins/removeformat/plugin.js
index
84d7947
..
d54bfb3
100644
(file)
--- a/
_source/plugins/removeformat/plugin.js
+++ b/
_source/plugins/removeformat/plugin.js
@@
-103,7
+103,10
@@
CKEDITOR.plugins.removeformat =
if ( tagsRegex.test( currentNode.getName() ) )
\r
currentNode.remove( true );
\r
else
\r
if ( tagsRegex.test( currentNode.getName() ) )
\r
currentNode.remove( true );
\r
else
\r
+ {
\r
currentNode.removeAttributes( removeAttributes );
\r
currentNode.removeAttributes( removeAttributes );
\r
+ editor.fire( 'removeFormatCleanup', currentNode );
\r
+ }
\r
}
\r
\r
currentNode = nextNode;
\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
* @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