Ticket #8255 (closed New Feature: invalid)

Opened 3 years ago

Last modified 3 years ago

Patch adding functionality for having an list of urls to select from in link dialog

Reported by: martinkronstad 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

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

Change History

Changed 3 years ago by martinkronstad

Patch

Changed 3 years ago by martinkronstad

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 3 years ago by martinkronstad

  • Keywords HasPatch added; Link dialog removed

comment:2 Changed 3 years ago by j.swiderski

  • Status changed from new to closed
  • Resolution set to invalid

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy