This plugin allows you to edit links with internal-links along with Autocomplete.
-
Download plugin
-
Extract to plugins directory in ckeditor
-
Add the plugin to CKEditor (config.js):
config.extraPlugins = 'internallink';
If everything is ok, a Internal-link icon should appear on the CKEditor toolbar, in links section. Click on it.
Service URL to be invoked to fetch links and it's titles. (CKEditor config.js).
config.internallinkServiceURL = "https://www.nak-west.de/api/plugin/ckeditor/search";Service URL will be invoked with 2 params 'q'(search query) and 'c'(URL).
Response MUST be an array of results with 'title' and 'link' details in it
{
"results": [
{
"title": "",
"link": ""
}, {
"title": "",
"link": ""
}, {
"title": "",
"link": ""
}
]
}Set to true, to hide 'Display text' field and operate with search field only. (CKEditor config.js):
config.internallinkHideDisplayText = true