You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selected, the text within the first `.comment-body` element will get quoted as:
26
+
This sets up a keyboard event handler so that selecting any text within `.my-quote-region` and pressing <kbd>r</kbd> appends the quoted representation of the selected text into the first applicable `<textarea>` element.
43
27
44
-
```
45
-
> ## **Formatted** text _to quote_
46
-
>
47
-
> Preserves `inline code` and [other features](https://guides.github.com/features/mastering-markdown/).
The optional `scopeSelector` parameter ensures that even if the user selection bleeds outside of the scoped element, the quoted portion will always be contained inside the scope. This is useful to avoid accidentally quoting parts of the UI that might be interspersed between quotable content.
38
+
57
39
## Events
58
40
59
-
A `quote-selection` event is fired on the quote region before text is appended to a textarea. Listen to the event to prepare the textarea or manipulate the selection text.
41
+
*`quote-selection-markdown` (bubbles: true, cancelable: false) - fired on the quote region to optionally inject custom syntax into the `fragment` element in `quoteMarkdown: true` mode
42
+
*`quote-selection` (bubbles: true, cancelable: true) - fired on the quote region before text is appended to a textarea
60
43
61
44
For example, reveal a textarea so it can be found:
0 commit comments