exposed same JS API as rich:editor has #175
generate dist