StevenDevooght / tinyMCE-mention

Mention/Autocomplete plugin for tinyMCE WYSIWYG editor.
http://stevendevooght.github.io/tinyMCE-mention/
221 stars 97 forks source link

autoCompleteData is undefined #69

Closed ProdigyView closed 6 years ago

ProdigyView commented 6 years ago

I am getting this error when trying to initative the plugin:

autoCompleteData is undefined

On plugin.js:382:13, which is thie line:

// If the delimiter is undefined set default value to ['@'].
            // If the delimiter is a string value convert it to an array. (backwards compatibility)
            autoCompleteData.delimiter = (autoCompleteData.delimiter !== undefined) ? !$.isArray(autoCompleteData.delimiter) ? [autoCompleteData.delimiter] : autoCompleteData.delimiter : ['@'];

I am using TinyMCE 4.7.9 and JQuery 3.2.1.

StevenDevooght commented 6 years ago

Hi,

Can you create a fiddle reproducing the issue?

ProdigyView commented 6 years ago

Closing, I just set some options in the wrong place.