/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
{\r
label : lang.label,\r
title : lang.panelTitle,\r
- voiceLabel : lang.voiceLabel,\r
className : 'cke_format',\r
- multiSelect : false,\r
-\r
panel :\r
{\r
- css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ),\r
- voiceLabel : lang.panelVoiceLabel\r
+ css : editor.skin.editor.css.concat( config.contentsCss ),\r
+ multiSelect : false,\r
+ attributes : { 'aria-label' : lang.panelTitle }\r
},\r
\r
init : function()\r
\r
styles[ value ].apply( editor.document );\r
\r
- editor.fire( 'saveSnapshot' );\r
+ // Save the undo snapshot after all changes are affected. (#4899)\r
+ setTimeout( function()\r
+ {\r
+ editor.fire( 'saveSnapshot' );\r
+ }, 0 );\r
},\r
\r
onRender : function()\r