I was able to figure this out. Here is what I did:
- Created a new folder in the plugin directory called fileman
- Created a file named
plugin.js
and added the code at the end of this post to it - Minifed the code and put the minified code in
plugin.min.js
- Edited
plugin.min.js
in thecontextmenu
plugin folder and addedfileman
to the list of loaded plugins - Added
fileman
to the list of loaded plugins when initializing the editor
Code:
tinymce.PluginManager.add('fileman', function(editor) {
editor.addMenuItem('fileman', {
icon: 'image',
text: 'Filemanager',
shortcut: 'Ctrl+J',
onclick: function() {
fileman.launch('editor');
},
context: 'insert',
prependToContext: true
});
});