[MGNLCKEDIT-14] Make link browser open selected path in tree Created: 14/Oct/14  Updated: 17/Dec/14  Resolved: 29/Oct/14

Status: Closed
Project: CKEditor Integration (closed)
Component/s: None
Affects Version/s: 1.0.2
Fix Version/s: 1.0.3

Type: Improvement Priority: Major
Reporter: Stefan Baur Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File CKRepositoryBrowserPage.html     Text File CKRepositoryBrowserPage.java    
Issue Links:
causality
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Date of First Response:
Visible to:
Christian Balaguer

 Description   

Hi there
I just had to fix this issue for our current project.

I have looked at the old fck editor and implemented the feature the same way...

The following changes were necessary:

  1. Implement public String select() {} in CKRepositoryBrowserPage to call setSelectedPath()
  2. Update filebrowser and imagebrowser urls in config
        config.filebrowserLinkBrowseUrl = cfg.contextPath + "/.magnolia/pages/ckRepositoryBrowser.html?contextPath=" + cfg.contextPath + "";
        config.filebrowserImageBrowseUrl = cfg.contextPath + "/.magnolia/pages/ckRepositoryBrowser.html?contextPath=" + cfg.contextPath + "&selectedRepository=dms";
    
  3. Add CKRepositoryBrowserPage.html ("show" template) to read the absoluteURI from opener.CKEDITOR and update the window.location.href

Generated at Sun Feb 11 23:59:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.