Namespace CKEDITOR.stylesSet
Extends
CKEDITOR.resourceManager.
Defined in: plugins/styles/plugin.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Manages styles registration and loading.
|
- Fields borrowed from class CKEDITOR.resourceManager:
- basePath, externals, fileName, loaded, registered
- Methods borrowed from class CKEDITOR.resourceManager:
- add, addExternal, get, getFilePath, getPath, load
Namespace Detail
CKEDITOR.stylesSet
Since:
3.2
Manages styles registration and loading. See also CKEDITOR.config.stylesSet.
// The set of styles for the Styles combo
CKEDITOR.stylesSet.add( 'default',
[
// Block Styles
{ name : 'Blue Title' , element : 'h3', styles : { 'color' : 'Blue' } },
{ name : 'Red Title' , element : 'h3', styles : { 'color' : 'Red' } },
// Inline Styles
{ name : 'Marker: Yellow' , element : 'span', styles : { 'background-color' : 'Yellow' } },
{ name : 'Marker: Green' , element : 'span', styles : { 'background-color' : 'Lime' } },
// Object Styles
{
name : 'Image on Left',
element : 'img',
attributes :
{
'style' : 'padding: 5px; margin-right: 5px',
'border' : '2',
'align' : 'left'
}
}
]);