title: How to dynamically generate options for RichCombo in CKEDITOR?
body: <p>There is a form on my page with textarea (CKEDITOR) and select field <code>&lt;select id="_photogalleries" multiple="multiple"&gt;&lt;/select&gt;</code>. I'd like options in RichCombo to depend on the options that are selected in select with id <code>#_photogalleries</code>. Is there any way to regenerate RichCombo dynamically? 
  Thanks in advance.</p>
  
  <pre class="lang-js prettyprint-override"><code>CKEDITOR.plugins.add('style_plugin', {
          requires: ['richcombo'],
          init: function(editor) {
              var pluginName = 'style_plugin';
              var config = editor.config,
                  lang = editor.lang.format;
  
              editor.ui.addRichCombo('photogalleries', {
                  label: "Фоторепортаж",
                  title: "Фоторепортаж",
                  voiceLabel: "Фоторепортаж",
                  className: 'cke_format',
                  multiSelect: false,
                  icon: CKEDITOR.plugins.getPath('style_plugin') + 'photo-list-horizontal.png',
  
                  panel: {
                      css: [config.contentsCss, CKEDITOR.getUrl(editor.skinPath + 'editor.css')],
                      voiceLabel: lang.panelVoiceLabel
                  },
  
                  init: function () {
                      this.startGroup("Фоторепортаж");
                      var list=this;
                      $("#_photogalleries option:selected").each(function(index, value){
                          console.log(index, value);
                          list.add("#HORIZONTAL_GALLERY_"+ $(value).val()+"#", "(Г) " + $(value).text(), "(Г) " + $(value).text());
                          list.add("#VERTICAL_GALLERY_"+ $(value).val()+"#",   "(В) " + $(value).text(), "(В) " + $(value).text());
                      });
                  },
  
                  onClick: function (value) {
                      editor.focus();
                      editor.fire('saveSnapshot');
                      editor.insertHtml(value);
                      editor.fire('saveSnapshot');
                  }
              });
          }
  });
  </code></pre>