Format piece of text programmatically based on first-last character indices of the raw text
bartonaz opened this issue · comments
Nazar Bartosik commented
- Is it possible to get from the Medium instance the string of raw unformatted text, without any HTML tags, like DOM
innerText
property would do? - In case I have such string, either from
Medium
or directly throughDOM
, how is it possible toinvokeElement
when there is no actual text selected, but there are indices of the first and last characters (with respect to the raw text) of the string that should be invoked?