Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5226)
+++ /CKEditor/trunk/CHANGES.html (revision 5227)
@@ -57,4 +57,5 @@
#4910 : Pasting in IE scrolls document to the end.
#5041 : Table summary attribute can't be removed with dialog.
+ #5124 : All inline styles cannot be set separately for empty spaces.
Index: /CKEditor/trunk/_source/plugins/styles/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/styles/plugin.js (revision 5226)
+++ /CKEditor/trunk/_source/plugins/styles/plugin.js (revision 5227)
@@ -351,8 +351,4 @@
var styleRange;
- // Indicates that that some useful inline content has been found, so
- // the style should be applied.
- var hasContents;
-
while ( currentNode )
{
@@ -425,6 +421,4 @@
applyStyle = true;
- if ( !hasContents )
- hasContents = ( nodeType != CKEDITOR.NODE_TEXT || (/[^\s\ufeff]/).test( currentNode.getText() ) );
}
}
@@ -440,5 +434,5 @@
// Apply the style if we have something to which apply it.
- if ( applyStyle && hasContents && styleRange && !styleRange.collapsed )
+ if ( applyStyle && styleRange && !styleRange.collapsed )
{
// Build the style element, based on the style object definition.