refactor inserting of contenteditable

close #109
fix caret position error after inserting
update version to v0.5.0