editor: update preview while user typing