Samir Ok there is no bug, just a documentation sample not updated. Edit.selected have been removed in previous version, replaced with the Edit.selection.text property I have updated the example accordingly.