feat(toc): basic support for read-only text

This commit is contained in:
Elian Doran
2025-12-18 11:12:27 +02:00
parent 41751c205c
commit b93c80fe7b
3 changed files with 44 additions and 3 deletions

View File

@@ -390,7 +390,7 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
* If no content could be determined `null` is returned instead.
*/
async getContentElement() {
return this.timeout<JQuery<HTMLElement>>(
return this.timeout<JQuery<HTMLElement> | null>(
new Promise((resolve) =>
appContext.triggerCommand("executeWithContentElement", {
resolve,