# Selections

## Component/part description

Make text selection of transcription

To look into <https://github.com/timdown/rangy>\
<https://developer.mozilla.org/en-US/docs/Web/API/Selection>

## Related projects

Hyperaudio, palestinian remix

## Implementations Options considered

### Palestinaian remix drag and drop

Palestinaian remix drag and drop

### Other

How to do text selection for highlight paper cuts. Currently in transcription show it traverse the DOM to update those.

Eg see selecting words function. That recognises uses selection.

<https://github.com/OpenNewsLabs/autoEdit_2/blob/paperedit/lib/app/views/transcription_view.js#L488>

And this function to update the dom with selections.

<https://github.com/OpenNewsLabs/autoEdit_2/blob/paperedit/lib/app/views/transcription_view.js#L91>\
There might be a better way to do this? Using rangy ?<br>

## Current implementation

## What needs refactoring


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://autoedit.gitbook.io/documentation/master-1.0.13-1/transcriptions/papercuts/selections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
