We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ca54d commit 4411a02Copy full SHA for 4411a02
src/selection.js
@@ -55,6 +55,11 @@ export default class Selection extends Cursor {
55
return this.range.toCharacterRange(this.host)
56
}
57
58
+ // Return a plain string of the current selection content.
59
+ toString () {
60
+ return this.range.toString()
61
+ }
62
+
63
// Get the ClientRects of this selection.
64
// Use this if you want more precision than getBoundingClientRect can give.
65
getRects () {
0 commit comments