I am using the div replace method to have an editor appear when text inside the div is clicked, which works fine.
My problem is closing the editor. I am using a click event attached to the body to close the editor which works fine so clicking outside the editor closes it, but because the toolbar is not loaded in the editors iframe, clicking those buttons also closes the editor which I don't want.
So how can I close the editor by the user clicking anywhere outside the whole editor not just the text input.
My problem is closing the editor. I am using a click event attached to the body to close the editor which works fine so clicking outside the editor closes it, but because the toolbar is not loaded in the editors iframe, clicking those buttons also closes the editor which I don't want.
So how can I close the editor by the user clicking anywhere outside the whole editor not just the text input.
Re: DIV replace - closing editor