Selecting text in ionic should trigger an event ? how?

Well it has been done in JS, and I did it on the web version of my app using JS How do I do same for android app. What I essentially want is that I’d select text in my ionic app, and when I do so, I’d expect to get an option of ‘Highlight’ the text , and then the text gets saved in a variable which I can use further Essentially it is a note taking app, where I highlight the text I did it using TinyQ in js, but how to do it in ionic All the efforts are appretiated

Haven’t used this particular one, and since it was written for Angular 5, it may need some updating to work with current versions, but I find Ben Nadel to be generally a rockstar-level source of code building blocks, and once upon a time he made this text selection directive.