Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access filbrowser window. #29

Open
MarkOdey opened this issue Nov 1, 2015 · 0 comments
Open

Unable to access filbrowser window. #29

MarkOdey opened this issue Nov 1, 2015 · 0 comments

Comments

@MarkOdey
Copy link

MarkOdey commented Nov 1, 2015

Hey Peeps,
I am currently implementing a gallery manager inside the ckeditor for a project and at some point I trigger the filebrowser. Everything was working fine apart the fact that I needed to reach the window object of the filebrowser inorder to close it when the process ended properly. So I added

$modx->event->output("function(data){
                data.window=window;
                window.parent.opener.CKEDITOR.tools.callFunction({$funcNum}, data.fullRelativeUrl, data);
            }");

in core\components\ckeditor\elements\plugins\ckeditor.plugin.php

That way I can grasp the scope of the window and bind which ever action I need to perform.

Is that a viable solution. Does someone as something else to propose. If that looks proper could we add this implemented in further realease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant