[critical] bug-fix

1. updateDocument failed lead document modified flag did not reset issue
2. editor toolbar focus issue