All the UI extensions run inside an Iframe. This makes it not possible to use window.getSelection(). As the window is your application and the cursor is on experience.adobe.com. isActive property doesn't work either on the getCustomButtons. So this does not work unfortunately. Kind regards, Reyn