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)

patch_ckeditor_link_dialog.patch (4.2 KB) - added by Martin 13 years ago.
Patch
link.js (40.8 KB) - added by Martin 13 years ago.
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 :)

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Martin

Patch

Changed 13 years ago by Martin

Attachment: link.js added

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 Martin

Keywords: HasPatch added; Link dialog removed

comment:2 Changed 13 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy