When tearing down the source editor, we need to store the updated cursor position, so that the position can be moved to when opening the rich text editor.
When tearing down the source editor, we need to store the updated cursor position, so that the position can be moved to when opening the rich text editor.