From Moxiecode Documentation Wiki
Method: storeSelection
Summary
Stores the current editor selection for later restoration. This can be useful since some browsers loose their selection if a control element is selected/focused inside the dialogs.
Syntax
<void> storeSelection()