We're using TinyMCE in AUI dialog2 in Confluence user plugin. When we removed the content from editor box (whenever cursor is not in editor box) and try to add content then it's showing errors:
1. The node to be replaced has been already deleted from the document
2. The given range isn't in document
Looks like when cursor focus not on the editor, it could not get the range from the editor。 My guess is that dialog is stealing the focus as this is a common behavior in dialogs created using HTML/CSS.
Do anyone know how to disable its code that steals the focus.
Anyone has any idea about it, any help would be greatly appreciated.