Framework for creating browser based text editors