Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 5451)
+++ /CKEditor/trunk/CHANGES.html (revision 5452)
@@ -70,4 +70,5 @@
#5433 : English protocol text directions in Link dialog are not incorrect in 'rtl' UI languages.
#5553 : Paste dialog clipboard area text direction is incorrect for 'rtl' content languages.
+ #4734 : Font size resets when font name is changed in an empty numbered list.
Index: /CKEditor/trunk/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/selection/plugin.js (revision 5451)
+++ /CKEditor/trunk/_source/plugins/selection/plugin.js (revision 5452)
@@ -210,5 +210,6 @@
{
var doc = editor.document,
- sel = doc && doc.$.selection;
+ sel = editor.getSelection(),
+ nativeSel = sel && sel.getNative();
// There is a very specific case, when clicking
@@ -220,5 +221,5 @@
// such situation we have to test the range, to
// be sure it's valid.
- if ( testIt && sel && sel.type == 'None' )
+ if ( testIt && nativeSel && nativeSel.type == 'None' )
{
// The "InsertImage" command can be used to
@@ -233,5 +234,5 @@
}
- savedRange = sel && sel.createRange();
+ savedRange = nativeSel && sel.getRanges()[ 0 ];
checkSelectionChangeTimeout.call( editor );