Is it possible to disable insert imagelink

This discussion is related to the CreativeCLEditor addon.

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" ?

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> &nbsp;<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>&nbsp;<div style="clear: both; border-bottom: 1px dotted #ccc; margin: 10px 0;"></div>',

    piotrnljoriun777
Sign In or Register to comment.