Return focus to the contenteditable before executing commands inside toolbar event handler