title: TinyMCE 4 plugin - preselect listbox option when dialog opens
body: <p>How can you preselect a specific listbox option when your plugin dialog opens?</p>
  
  <pre><code>tinymce.PluginManager.add('mybutton', function(editor, url) {
  editor.addButton('mybutton', {
      icon: true,
      image: url + '/img/mybutton.png',
      title: 'Select An Option',
      onclick: function() {
          editor.windowManager.open({
              title: 'My options',
              body: [
                  {
                      type: 'listbox',
                      name: 'myoptions',
                      label: 'My Options',
                      'values': [
                          {text: 'Option 1', value: '1'},
                          {text: 'Option 2', value: '2'},
                          {text: 'Option 3', value: '3'}, /* preselect this option */
                          {text: 'Option 4', value: '4'},
                          {text: 'Option 5', value: '5'},
                      ]
                  }
              ],
              onsubmit: function(v) {
                  editor.insertContent(v.data.myoptions);
              }
          });
      }
  });
  });
  </code></pre>