RichFilemanager icon indicating copy to clipboard operation
RichFilemanager copied to clipboard

integrate an external Filemanager to TinyMCE v5.

Open SimJH opened this issue 4 years ago • 0 comments

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" });
          }
      });
    }
});

SimJH avatar Jun 15 '21 05:06 SimJH