Further fix replacing contents in TextEditor: internal/external clients have different needs
Merge pull request #3626 from ussuri/fix-setting-new-editor-content

Further fixes to TextEditor.replaceContents(): internal/external clients have different needs