009e5d2e8eca385ec100b79636a6ddf4c9389f14
[ckeditor.git] / skins / ckeditor / plugins / plinn_styles / plugin.js
1 ( function() {
2
3 var PlinnStylesCombo = function(editor) {
4 this.label = 'Styles';
5 this.title = 'CSS Styles';
6 this.toolbar = 'styles,10';
7 this.panel = {
8 css : [CKEDITOR.skin.getPath( 'editor' )].concat(editor.config.contentsCss),
9 multiSelect : true,
10 attributes : {'aria-label': this.title}
11 };
12 };
13
14
15 var PlinnStylePlugin = function() {
16 this.requires = 'richcombo';
17 };
18
19 PlinnStylePlugin.prototype.init = function(editor) {
20 var psc = new PlinnStylesCombo(editor);
21 editor.ui.addRichCombo('PlinnStyles', psc);
22 editor.on('stylesSet', this.onStylesSet);
23 };
24
25 PlinnStylePlugin.prototype.onStylesSet = function(evt) {
26 var stylesDefinitions = evt.data.styles;
27 if (!stylesDefinitions) { return; }
28
29 };
30
31
32 // main
33 CKEDITOR.plugins.add( 'plinn_styles', new PlinnStylePlugin());
34
35 } )();