Opened 13 years ago
Closed 13 years ago
#8255 closed New Feature (invalid)
Patch adding functionality for having an list of urls to select from in link dialog
Reported by: | Martin | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.6.1 |
Keywords: | HasPatch | Cc: |
Description
As the summary describes, this patch will make you ckeditor 3.6.1 able to display an list of links in the link dialog, under a new link type called "urlList".
Changes are done in two files. The major part of the changes is done in the link.js file inside /plugins/link/dialog/link.js.
The other file needing changes are config.js.
In config.js you need to add a line like:
config.urlList = [ [Name of link,url of link],[Name of link2,url of link2] ];
In my case I use a custom config-file, and use PHP for generating the config. This way I can load my link-list from the database.
Check out a demo here: http://ckeditor.web1.siteman.no
Attachments (2)
Change History (4)
Changed 13 years ago by
Attachment: | patch_ckeditor_link_dialog.patch added |
---|
Changed 13 years ago by
The complete file, replace your /plugins/link/dialog/link.js with this one if you have ckeditor 3.6.1 and dont want to use the patch :)
comment:1 Changed 13 years ago by
Keywords: | HasPatch added; Link dialog removed |
---|
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
This plugin Has one major drawback. In larger systems there can be many links (few hundred or even few thousand). Writing them first in config.js and then displaying them in one huge dropdown list is out of the question. Such cases are rather handled with usage of AJAX. Users receive portion of links after typing few characters and/or selecting appropriate category.
We suggest you to change this new feature into plugin and announce it in your blog or some place similar so that it could be used by users who are interested in such functionality.
Patch