fix editor range lose when open dialog.
fix editor range lose when open dialog.

ruby-china/writings,toadh/writings,toadh/writings,TheUtils/writings,chloerei/writings,chloerei/writings,lazybios/writings,TheUtils/writings,lazybios/writings,lazybios/writings,toadh/writings,ruby-china/writings,TheUtils/writings