This is probably an edge case, but I have the need to turn off the autocomplete functionality for the ckeditor_link plugin. To accomplish this, I am commenting out two lines of code, to prevent the autocomplete from stepping in. By doing this, I can then type in manually to the link field and not have the autocomplete functionality and have it function as a free-form text field. When editing relative URL fields the autocomplete still fills in the title and the path in parenthesis which is fine in our case.

In ckeditor_link/plugins/link/plugin.js commented out the following lines:

79       this.getContentElement('info', 'drupal_path').select();
119     this.getInputElement().addClass('form-autocomplete');

Comments

alphageekboy’s picture

Attaching patch with two lines mentioned above commented out.

alphageekboy’s picture

Left out one of the commented lines. Attaching new revision.

alphageekboy’s picture

Again, wrong patch. This one should work.

alphageekboy’s picture

Status: Active » Closed (won't fix)

Definitely not a bug. I wasn't exactly sure where to put this. We actually, ended up going in a different direction by just renaming "" to "Relative URL" to be clearer to front-end admin users. Pretty simplistic approach and keeps the logic simpler and reduces the need to use this module.

Thanks for your review.

Tracy

alphageekboy’s picture

Issue summary: View changes

Changed link.js to plugin.js