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.4b
[ckeditor.git]
/
_source
/
plugins
/
removeformat
/
plugin.js
diff --git
a/_source/plugins/removeformat/plugin.js
b/_source/plugins/removeformat/plugin.js
index
d54bfb3
..
28b4ea7
100644
(file)
--- a/
_source/plugins/removeformat/plugin.js
+++ b/
_source/plugins/removeformat/plugin.js
@@
-35,9
+35,11
@@
CKEDITOR.plugins.removeformat =
( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) );
\r
\r
var filter = CKEDITOR.plugins.removeformat.filter;
\r
( editor._.removeAttributes = editor.config.removeFormatAttributes.split( ',' ) );
\r
\r
var filter = CKEDITOR.plugins.removeformat.filter;
\r
- var ranges = editor.getSelection().getRanges();
\r
+ var ranges = editor.getSelection().getRanges( true ),
\r
+ iterator = ranges.createIterator(),
\r
+ range;
\r
\r
\r
- for ( var i = 0, range ; range = ranges[ i ] ; i++ )
\r
+ while ( ( range = iterator.getNextRange() ) )
\r
{
\r
if ( range.collapsed )
\r
continue;
\r
{
\r
if ( range.collapsed )
\r
continue;
\r