Skip to content

Commit

Permalink
stor-11705 check for undefined1
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeles committed Jul 17, 2018
1 parent e34a7b8 commit 06cdbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 06cdbb1

Please sign in to comment.