SquibView - Selection API Example

Select text in either the source (left) or rendered (right) panel to see selection data update automatically. Use the buttons to interact with the selection.

Selection Info (updates on selection change):
No selection yet.
- `selectionRange` is most relevant for the source panel (textarea). - `element` refers to the DOM element where the selection occurred (source textarea or output div).