exposed same JS API as rich:editor has #175