improvements on editor js code base, added undomanager