Genestoy Posted June 13, 2017 Share Posted June 13, 2017 Does anybody know how to remove the "Insert other media" button in the editor? I would like to remove the button completely Thanks Link to comment Share on other sites More sharing options...
AndyF Posted June 13, 2017 Share Posted June 13, 2017 Disabling remote images may do it (but that may not be what you want) , you can remove it from the theme however but note I have not really tested this to any degree. I merely found it in the source and then in the templates and tried it quickly: Themes > (choose) > Edit HTML / CSS > Core > Global > Forms > EditorAttachments Find (about halfway down) <li class='ipsPos_right ipsResponsive_noFloat'> <a href='#' class='ipsButton ipsButton_light ipsButton_verySmall' data-ipsMenu id='elEditorAttach_media{expression="md5($editorName)"}'>{lang="editor_attach_other"} <i class='fa fa-caret-down'></i></a> <ul class='ipsMenu ipsMenu_auto ipsHide' id='elEditorAttach_media{expression="md5($editorName)"}_menu'> <li class='ipsMenu_item'><a href='#' data-ipsDialog data-ipsDialog-fixed data-ipsDialog-forceReload data-ipsDialog-destructOnClose data-ipsDialog-remoteSubmit='false' data-ipsDialog-remoteVerify='false' data-ipsDialog-title='{lang="editor_insert_existing_file"}' data-ipsDialog-url="{url="app=core&module=system&controller=editor&do=myMedia&postKey={$editor}&editorId={$editorName}" csrf="1"}">{lang="editor_insert_existing_file"}</a></li> {{if \IPS\Settings::i()->allow_remote_images}} <li class='ipsMenu_item'><a href='#' data-ipsDialog data-ipsDialog-forceReload data-ipsDialog-title='{lang="editor_insert_from_url"}' data-ipsDialog-url="{url="app=core&module=system&controller=editor&do=link&image=1&postKey={$editor}&editorId={$editorName}" csrf="1"}">{lang="editor_insert_from_url"}</a></li> {{endif}} </ul> </li> Remove or comment out with a leading <!-- and a trailing --> on the first and last tags. Looks like this after: Link to comment Share on other sites More sharing options...
clearvision Posted June 13, 2017 Share Posted June 13, 2017 If you don't want to modify and maintain a template adding .ipsComposeArea_dropZone .ipsPos_right {display:none;} to custom.css should work Link to comment Share on other sites More sharing options...
Genestoy Posted June 13, 2017 Author Share Posted June 13, 2017 Thanks clearv 1 hour ago, clearvision said: If you don't want to modify and maintain a template adding .ipsComposeArea_dropZone .ipsPos_right {display:none;} to custom.css should work That did the trick and thanks to both of you for responding so quickly!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.