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 2a2292f commit 8d6f6e8Copy full SHA for 8d6f6e8
src/editor/EditorPlugin.ts
@@ -192,6 +192,8 @@ class SectionWordCountEditorPlugin implements PluginValue {
192
return match ? match[1].length : null;
193
};
194
195
+ if (!view.visibleRanges.length) return b.finish();
196
+
197
// Start processing from the beginning of the first visible range
198
const { from } = view.visibleRanges[0];
199
const doc = view.state.doc;
0 commit comments