Opened 12 years ago
Last modified 12 years ago
#9806 confirmed New Feature
Add support for internal pages in link dialog
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Drupal | Cc: | wim.leers@…, mattleff@… |
Description
Pull request: https://github.com/ckeditor/ckeditor-dev/pull/9
This feature would be very valuable for CMSes.
Change History (9)
comment:1 Changed 12 years ago by
Status: | new → confirmed |
---|
comment:2 follow-up: 3 Changed 12 years ago by
comment:3 Changed 12 years ago by
Cc: | wim.leers@… added |
---|
Replying to wwalc:
I agree with all of wwalc's notes (they're very clearly laid out too!). The only two things I have to add are:
- Please don't make the tree view compulsory.
- Please also provide an "autocomplete callback" style functionality as well; where the server side can decide what kind of matching (prefix, partial, fuzzy) to perform on which aspect of links (title, description, URL).
comment:4 Changed 12 years ago by
#288 was marked as duplicate.
This ticket has more up to date comments.
comment:6 Changed 12 years ago by
Keywords: | Drupal added |
---|
comment:7 follow-up: 8 Changed 12 years ago by
Yeah I agree with the above. A Tree structure in a cms isn't important at all. An autcomplete widget is! :) Btw I'm only used to the "old" ckeditor. Just tested the demo and the link widget is already an improvement.
comment:8 Changed 12 years ago by
Replying to aspilicious:
Yeah I agree with the above. A Tree structure in a cms isn't important at all. An autcomplete widget is! :)
Thanks for chiming in, aspilicious :) (He's also a Drupal core contributor.)
I wouldn't say that a tree structure is not important at all for a CMS. That's oversimplifying to the other extreme. There are definitely valid use cases for CMSes that use a tree paradigm as the central concept of structuring and navigating content. It's not because Drupal doesn't do that, that CKEditor should not support tree-based navigation as well.
comment:9 Changed 12 years ago by
Milestone: | CKEditor 4.1 |
---|
Few thoughts based on my past experience with link browsers.
Ad 3b) The callback function should not be called just once. On large sites it is nearly impossible to load and return all links at once. Large sites will have nested groups of links and the first call will list only the top level set of links:
If a link has
hasChildren
property set to true, then it should be possible to expand further the tree with links using e.g.[+]
. In such case another callback function should be called with the parent url passed as an argument, to load child links.The result after the first call to
getInternalLinks()
Now when user clicks
[+]
next to Wiki,getInternalLinks('/wiki')
is called. If it returns:then we should end up with:
I'm wondering if it would not be even better to pass the whole object that represents the link as an argument instead of just an URL. This way if someone returns more information about the link (e.g. ID in a database):
he will be able to use this additional data to retrieve child links.