This is an old revision of the document!
This tutorial will specifically walk you through the process of removing the URL link/unlink buttons from the WYSIWYG editor in the software. You can use it as a starting point for how to customize other aspects of the WYSIWYG editor as well.
<tip c n>Tip: This tutorial only covers how to remove the "link button" from the WYSIWYG editor, but someone can still add a link by entering in the HTML manually. To stop that from happening, you can dis-allow the "a" tag in the admin at Site Setup > Allowed HTML.</tip>
Skills
Handy tools when editing template files:
<
theme_advanced_disable : 'visualaid,help,styleselect,cleanup,image', We will be adding ,link,unlink to that line to effectively disable those 2 buttons. So the line should now look like this:
theme_advanced_disable : 'visualaid,help,styleselect,cleanup,image,link,unlink',
<
tinyMCE.init({ldelim} theme : 'advanced', language : 'en', mode : 'textareas', plugins: 'advlink',//fix link to work in gzip editor_selector : 'editor', {if $blank_screen_fix}strict_loading_mode : true,{/if} theme_advanced_disable : 'visualaid,help,styleselect,cleanup,image', theme_advanced_buttons3_add : 'separator,forecolor,backcolor', {if $width > 0} width: '{$width}', {/if} {if $height > 0} height: '{$height}', {/if} content_css: 'wysiwyg.css' });
For instance, if you wanted to add a new configuration line, you would add it somewhere in that code snippet. <
<script type="text/javascript"> tinyMCE_GZ.init({ldelim} themes : 'advanced', languages : 'en', disk_cache : true, //breaks load/unload to turn this on debug : false }); </script>
<
{literal}CODE HERE{/literal} <
<