From 55ad112924d34fe2e30bf5e288a8df223d340b5d Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Mon, 31 Aug 2020 16:12:18 +0200 Subject: [PATCH] Move holder --- editor/src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {