Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
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; }); } });
This paste will be private.
From the Design Piracy series on my blog: