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

Add resource id to resource browser referer. #7

Open
pepebe opened this issue Aug 3, 2013 · 1 comment
Open

Add resource id to resource browser referer. #7

pepebe opened this issue Aug 3, 2013 · 1 comment

Comments

@pepebe
Copy link

pepebe commented Aug 3, 2013

I'm looking for an alternative to tinymce and today I tried ckeditor. What I have seen so far looks very promissing. Thanks for your contribution.

Is it possible to add the id of the current resource to the referer of the resource browser window? (the one that pops up if you hit "browse server" in image properties.

Right now the url looks like this:

http://example.com/manager/index.php?a=3&source=3&CKEditor=ext-comp-1053&CKEditorFuncNum=3&langCode=en

Adding:

&id=# (# = the id of the current resource)

To the parameters would allow to redirect to resource specific directories with a snippet enhanced media resource.

Regards,

pepebe

@pepebe
Copy link
Author

pepebe commented Aug 3, 2013

I hacked ckeditor.js to get it done. It works but it is an extremely dirty hack. I'm not sure how to do it in an update friendly way. Any ideas?

https://gist.github.com/pepebe/6147405

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