( arpi_esp | 2022. 07. 12., k – 22:12 )

igen ezt probalgatom mar orak ota, de sajnos ez szerkeszteskor (textarea-ban) nem mukodik...

nekem se, es mozillaek szerint se:

https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection

It is worth noting that currently getSelection() doesn't work on the content of <textarea> and <input> elements in Firefox, Edge (Legacy) and Internet Explorer. HTMLInputElement.setSelectionRange() or the selectionStart and selectionEnd properties could be used to work around this.

na most nekem a selectionStart/selectionEnd is mindig 0, akkor is ha megkeresem byId a textarea objectet es abban nezem :(  viszont a value-ben ott a szoveg, viszont modositani se tudom...