Interested to know if there is a straightforward way to add a text control to the link dialog window in the Link module (to set and modify the displayed text).
This seems to be a very common question elsewhere on the web but I haven't seen a definitive solution. Any chance the module itself might be updated to include this option?
We would like to see this
We would like to see this feature too and it's totally doable. If not by an external plugin, than definitely by modifying the link plugin code. And this should be pretty easy to code.
Unfortunately, we are loaded with tasks for next... for a long time :D. But if you want to help I can give you some ideas where to look first. To start, an additional input must be added to the link dialog. Then it must be handled when creating a new link here - https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/link/dialogs/link.js#L869-L875. But that's only half of the job, because the question is what should happen when editing an existing link or creating a link on not collapsed selection? The easiest solution would be to use linkElement.getText() method in the input's setup callback and using linkElement.setText() when closing dialog. But it will lead to losing HTML tags inside the link, so e.g. we can check whether the value was modified by user and then update link's text only if the text was changed.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+