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
Comment #1
alphageekboy commentedAttaching patch with two lines mentioned above commented out.
Comment #2
alphageekboy commentedLeft out one of the commented lines. Attaching new revision.
Comment #3
alphageekboy commentedAgain, wrong patch. This one should work.
Comment #4
alphageekboy commentedDefinitely 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
Comment #4.0
alphageekboy commentedChanged link.js to plugin.js