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 3de9554 commit 4fd1f77Copy full SHA for 4fd1f77
src/selection.js
@@ -60,6 +60,12 @@ export default class Selection extends Cursor {
60
return this.range.toString()
61
}
62
63
+ // Return true if the selection can be wrapped, i.e. all open nodes
64
+ // are closed within this selection.
65
+ isWrappable () {
66
+ return content.isWrappable(this.range)
67
+ }
68
+
69
// Get the ClientRects of this selection.
70
// Use this if you want more precision than getBoundingClientRect can give.
71
getRects () {
0 commit comments