bibi icon indicating copy to clipboard operation
bibi copied to clipboard

fire event on selection of text

Open monolithpl opened this issue 7 years ago • 3 comments

is it possible to fire an event when some text is selected / double clicked in the epub? i've tried the standard onselect / selectionchange javascript events, but they seem to be blocked. could you please share a snippet of code on how this could be done? this would help people translate words in the epub books.

monolithpl avatar Feb 03 '18 07:02 monolithpl

aside from the standard javascript functions, i've also tried the functions from your sML library, which is part of bibi, but neither sML.Selection.getSelectedText() nor sML.getSelection() return the text that is selected.

monolithpl avatar Feb 03 '18 21:02 monolithpl

Has this been fixed? I need a way to get selected text in ebook

wildmoose avatar Sep 14 '20 13:09 wildmoose

Has this been fixed? Does any one have an idea for this?

bigcandy95 avatar Aug 21 '23 08:08 bigcandy95