sehmaschine / django-filebrowser

Media-Management with Grappelli
http://twitter.com/sehmaschine
Other
976 stars 408 forks source link

Add support for TinyMCE v5 #382

Closed alan-hicks closed 3 years ago

alan-hicks commented 4 years ago

TinyMCE update to version 5 changed callbacks from file_browser_callback to file_picker_callback. This pull request adds TinyMCE v5 support to FileBrowser.

oruehenbeck commented 3 years ago

@alan-hicks Thanks for the work :) as i needed exactly that for the django-filebrowser-no-grappelli version. i submitted a security-patched version of your work over there as pull-request.

Before merging the pull-request here someone should fix filebrowser/static/filebrowser/js/FB_TinyMCEv5.js based on: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage as providing * as unspecific targetOrigin is a severe security issue.

sehmaschine commented 3 years ago

fixed with stable/3.13