CKeditor populate dialog select with Ajax
I am trying to populate my CKeditor dialog selectbox with ajax. The following is from my plugin.js file: ... { type : 'select', id : 'style', label : 'Style', setup : CKEDITOR.ajax.post( '.../ckeditor/plugins/simpleLink/ajax.php', JSON.stringify( { foo: 'bar' } ), 'application/json', function( data ) { console.log( data); }), items : [ ['--- Select something ---', 0] ], commit : function( data ) { data.style = this.getValue(); } } ... The ajax output looks like this: ["Basketball","basketball"],["Baseball","baseball"],["Hockey","hockey"] I am really wondering how to get the output INTO the