Sha256: f102e2e3b5e9e5be15e64f13a5546d962eb9d7bce06de3d0e6afc89831336820
Contents?: true
Size: 924 Bytes
Versions: 94
Compression:
Stored size: 924 Bytes
Contents
tinymce.PluginManager.add('filemanager', function(editor) { function openmanager() { var dom = editor.dom; $.fn.upload_filemanager({ selected: function(file){ var linkAttrs = { href: file.url, target: '_blank', rel: null, "class": null, title: file.name } editor.insertContent(dom.createHTML('a', linkAttrs, dom.encode(file.name))); } }); } editor.addButton('filemanager', { icon: 'browse', tooltip: 'Insert file', onclick: openmanager, stateSelector: 'img:not([data-mce-object])' }); editor.addMenuItem('filemanager', { icon: 'browse', text: 'Insert file', onclick: openmanager, context: 'insert', prependToContext: true }) });
Version data entries
94 entries across 94 versions & 2 rubygems