diff options
Diffstat (limited to 'web_src/js/features/comp/EasyMDE.js')
-rw-r--r-- | web_src/js/features/comp/EasyMDE.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/js/features/comp/EasyMDE.js b/web_src/js/features/comp/EasyMDE.js index 3a2f935dc2..9d711088d8 100644 --- a/web_src/js/features/comp/EasyMDE.js +++ b/web_src/js/features/comp/EasyMDE.js @@ -1,3 +1,4 @@ +import $ from 'jquery'; import attachTribute from '../tribute.js'; const {appSubUrl} = window.config; @@ -54,7 +55,7 @@ export async function importEasyMDE() { * @returns {null|EasyMDE} */ export async function createCommentEasyMDE(textarea, easyMDEOptions = {}) { - if (textarea instanceof jQuery) { + if (textarea instanceof $) { textarea = textarea[0]; } if (!textarea) { @@ -151,7 +152,7 @@ export function attachEasyMDEToElements(easyMDE) { * @returns {null|EasyMDE} */ export function getAttachedEasyMDE(el) { - if (el instanceof jQuery) { + if (el instanceof $) { el = el[0]; } if (!el) { |