Skip to content

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.

1 participant