Linking documents in ckeditor

Summary

Linking documents in ckeditor

Step to reproduce

When we try to link to a document with ckeditor, the document browser opens correctly, but we can’t double-click on a document to take over the path/url. At this point just nothing happens.
Any ideas, what could cause this issue?

Environment

MODX v2.8.3

It seems, that in the last version of the extra (1.4.1-pl) a change was made that breaks this functionality.

To fix it, go to the file manager/assets/components/ckeditor/modx.htmleditor.js and change the line 86

var query = {a: 'media/browser', source: MODx.config['default_media_source']};

to

var query = {a: 'browser', source: MODx.config['default_media_source']};

It’s unclear to me, who released version 1.4.1-pl.

The (probably) original github repo is unchanged (still on version 1.4.0) and the pull request that is referenced in the release notes doesn’t have the wrong ‘action’ parameter.

1 Like

I just changed that specific line, unfortunately it doesn’t resolve the problem.

did you clear your browser cache, after that?

Well… no. Thank you! :grin:

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.