Move holder

This commit is contained in:
Peter Stuifzand 2020-08-31 16:12:18 +02:00
parent e83cba6a3f
commit 55ad112924

View File

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