We get JS error

Uncaught TypeError: Cannot read property 'profile' of undefined

for line Drupal.settings.linkit.currentInstance.profile = Drupal.settings.linkit.formats[format].profile; in "editors/ckeditor/plugin.js".

Comments

junaidpv created an issue. See original summary.

junaidpv’s picture

After debugging, I found it happen when input formats are having numbers as their machine name. Then those numeric index in array get reordered while it converted to JS setting. See attached patch fixing the issue, by converting the setting to object to ensure numeric indexes preserved as they are.

I see normally input formats will have text as their machine name. I strongly assume it occurred because the site was migrated from Drupal 6 to 7.