jquery infrastructure for editor buttons