I ran into an issue getting the CK editor link module to work. Steps to replicate and fix issue (images below):

1. Download and configure ckeditor_link module
2. Try to link and get a javascript error
3. in sites/all/module/bootstrap/misc/autocomplete.js there is an unknown variable name $context.find
4. Remove and test

Comments

luwoldy created an issue. See original summary.

djake’s picture

Issue summary: View changes
StatusFileSize
new111.54 KB

I am having the same problem. The link dialog is distorted and the JS error described in the issue summary occurs as soon as the dialog is open. Everything works as normal using Seven on the same site.

Link dialog screenshot

djake’s picture

Version: 7.x-3.0 » 7.x-3.1
kbrinner’s picture

I encountered the same thing when I upgraded from 7.x-3.0 to 7.x-3.1. Reverting back to 7.x-3.0 solved the problem.

markhalliwell’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2618514: Autocomplete stopped working in 3.1

Please see this change record: https://www.drupal.org/node/2632698

anrikun’s picture

Title: Ckeditor Link Module and autocomplete conflict » autocomplete.js conflicts with the CKEditor Link module
Version: 7.x-3.1 » 7.x-3.x-dev
Status: Closed (duplicate) » Needs review
StatusFileSize
new487 bytes

@markcarver: I don't think this have to do with https://www.drupal.org/node/2632698.
Patch attached should fix the problem with CKEditor Link.

junghandy’s picture

The patch in #6 did not fix the issue when using ckeditor_link 7.x-2.4 and bootstrap 7.x-3.5. I receive get the same error as before.

junghandy’s picture

StatusFileSize
new829 bytes

Piggybacking on the patch from #6 here's a patch that falls back to the global context if the autocomplete constructor was not supplied with one. This resolved issues between ckeditor_link 7.x-2.4 and bootstrap 7.x-3.5 for me.

daniel_j’s picture

StatusFileSize
new689 bytes

Re-rolling the patch from #8 so it can be referenced from drush make makefiles.

  • markcarver committed 49ada7a on 7.x-3.x authored by junghandy
    Issue #2594243 by junghandy, anrikun, daniel_j: autocomplete.js...
markhalliwell’s picture

Status: Needs review » Fixed
Related issues: +#2315295: Autocomplete doesn't respect context

Ahh. I see now. The module is invoking Drupal.jsAC manually and doesn't know about context. Ok. I've committed #9 with a few adjustments, mostly explaining why it's also needed there.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.