From 06cdbb13f570f514027182f73dfa58825b1b4e89 Mon Sep 17 00:00:00 2001 From: ggeles Date: Tue, 17 Jul 2018 12:52:17 -0400 Subject: [PATCH] stor-11705 check for undefined1 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5aba247..9c2cf54 100644 --- a/index.js +++ b/index.js @@ -265,7 +265,7 @@ var caret = this.editor.dom.select('span#autocomplete span#_mce_caret')[0]; var searchtext = this.editor.dom.select('span#autocomplete span#autocomplete-searchtext')[0]; - if (carret && searchtext) { + if (caret && searchtext) { this.editor.dom.add(caret.parentElement, searchtext); this.editor.dom.remove(caret); }