I need to enumerate all instances of RadEditor control on the page.
Scenario: there are several text editors on the page and OK and Cancel buttons. When user presses Cancel button I'd like to check if there are any changes made by the user and warn the user that the changes will be lost.
I can check if editor content has been changed by the following piece of code:
|var manager = editor.get_commandsManager();|
|var length = manager.getCommandsToUndo().length;|
The question is how to get each text editor instance on the page? I can use, for instance, OnClientLoad event to collect text editor instances in some collection on client side, however I suppose there can be some other way to do that using existing features of client-side API?