HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Is it possible to disable insert imagelink
I'm using the Magic plugin, user can just paste an image/video link and the picture/video is embedded in the comment. This plugin interferes with the "insert image link" function in the editor. Is it possible to disable the insert image link but keep the "upload local file" ?
0
Comments
Yes, you can copy the js/cleditor_plugins.js to your THEME/js/ directory, edit the file, and remove the url code.
So search for:
popupContent: '<label>Local Image:</label><br><input id="local_image" type="button" value="Browse" style="float: left;"><div id="image_upload_loader" style="float: left; margin-left: 10px; padding-top: 3px;"></div><br> <div style="clear: both; border-bottom: 1px dotted #ccc; margin: 10px 0;"></div><label>Enter URL:<br /><input type="text" value="http://" style="width:200px" /></label><br /><input id="server_image" type="button" value="Submit" />',
and replace for:
popupContent: '<label>Local Image:</label><br><input id="local_image" type="button" value="Browse" style="float: left;"><div id="image_upload_loader" style="float: left; margin-left: 10px; padding-top: 3px;"></div><br> <div style="clear: both; border-bottom: 1px dotted #ccc; margin: 10px 0;"></div>',