Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
tinymce custom upload file
tinyMCE.init
selector: '#my_editor',
plugins: [ 'image' ]
file_browser_callback: (field_name, url, type, win) ->
if type == 'image'
$('.mce-container.mce-panel.mce-floatpanel.mce-window.mce-in').hide()
$('.modal-backdrop').hide()
$('#mce-modal-block').hide()
$('#myModal').modal('show')
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.