makeSearchCommand({
name: "RAE",
url: "http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_BUS=3&LEMA={QUERY}",
description: "Searches the RAE dictionary for the term.",
preview: function(pblock, directObject) {
var searchTerm = directObject.text;
var url = "http://buscon.rae.es/draeI/SrvltGUIBusUsual";
var params = { TIPO_BUS: "3", origen: "RAE", LEMA: searchTerm };
jQuery.get(url, params, function(data){
// Trying to get ahold of the aceptions, still not able to
//var acep = jQuery(data).find('.eAcep').get(0).firstChild.textContent;
pblock.innerHTML = data;
});
}
});