﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5290	Create a editor.getStylesSet function	Alfonso Martínez de Lizarrondo	Alfonso Martínez de Lizarrondo	"Currently both the styleCombo and the div dialog include code to check the config data and request the load of the styles data.

In the future other dialogs should have also the same combo like the div, and also it should be possible to manually add extra styles to the data for example by parsing the css file.

In order to do that the first step should be to simplify the loading of the styles data. Instead of doing
{{{
 // Reuse the 'stylescombo' plugin's styles definition.
 customStylesConfig =  editor.config.stylesCombo_stylesSet,
 stylesSetName = customStylesConfig && customStylesConfig.split( ':' )[ 0 ];

if ( stylesSetName )
{
	CKEDITOR.stylesSet.load( stylesSetName,
		function( stylesSet )
		{
			var stylesDefinitions = stylesSet[ stylesSetName ],
}}}

we should provide a function that abstracts that code to 
{{{
editor.getStyles( function( stylesDefinitions )
{
}}}
"	Task	closed	Normal	CKEditor 3.3	Core : Styles	3.2	fixed	Confirmed Review+	
