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

integrate an external Filemanager to TinyMCE v5. #404

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SimJH
Copy link

@SimJH SimJH commented Jun 15, 2021

I modified Rich File Manager, it can be used in TinyMCE 5 version.

I'd like you to add the code below to the wiki.

Thank you~!


tinymce.init({
    file_picker_callback: function(callback, value, meta) {
      tinyMCE.activeEditor.windowManager.openUrl({
          url: "",
          title: "File Manager",
          width: window.innerWidth,
          height: window.innerHeight,
          onMessage: function(api, message) {
               callback(message.content, { alt: "File From Rich File Manager" });
          }
      });
    }
});

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

Successfully merging this pull request may close these issues.

None yet

1 participant