+PlinnStylesCombo.prototype.onRender = function() {
+ var self = this;
+ this.editor.on('selectionChange', function(evt){self.checkSelection(evt);});
+};
+
+PlinnStylesCombo.prototype.checkSelection = function(evt) {
+ if (evt.data.selection.getRanges().length > 1) {
+ this.disable();
+ }
+ else {
+ this.enable();
+ }
+};
+