Hi, I'm new to ckeditor, and I'm trying to make a plugins this plugins consists of using a Select create / insert a button in the html result, the ID is the ID of the Select and Button name is the name Select, I can get the ID of the select with getValue (). but I can not get the name of the selected Obeject. Does anyone could help me with this?
{
type : 'select',
id : 'id',
label : 'id',
items : result,
onChange : function()
{
var val = this.getValue();
alert(val);
}
},
commit : function( data )
{
data.id = this.getValue();
}
}
jQuery.extend({
getValues: function(url) {
var result = null;
$.ajax({
url: url,
type: 'get',
dataType: 'json',
async: false,
success: function(data) {
result = data;
}
});
return result;
}
});
var result = $.getValues('ajaxGetNameId.php');