diff --git a/editor/src/index.js b/editor/src/index.js index 91a72d3..db534ff 100644 --- a/editor/src/index.js +++ b/editor/src/index.js @@ -89,8 +89,6 @@ function addIndicator(editor, indicator) { } } -let holder = document.getElementById('editor'); - function showSearchResults(searchTool, query, input, value, resultType) { return showSearchResultsExtended('#link-complete', 'link-template', searchTool, query, input, value, resultType, { showOnlyResults: true, @@ -212,6 +210,7 @@ MD.use(MarkdownItWikilinks({ }, })).use(MarkdownItMark).use(MarkdownItKatex) +let holder = document.getElementById('editor'); if (holder) { const options = { transform(text, element) {