Fixed bug where spell checking was not reenabled after the editor was detached