I cannot seem to get this right. Maybe someone can see what I am doing wrong.
editor_toolbar_on
HTML Code:
<if condition="$show['php_bbcode']">
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" width="21" height="20" alt="$vbphrase[wrap_php_tags]" /></div></td>
</if>
<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_VBA"><img src="$stylevar[imgdir_editor]/vba.gif" width="21" height="20" alt="Wrap [VBA] tags" /></div></td>
$vBeditTemplate[extrabuttons]
</tr>
</table>
vbulletin_textedit.js
PHP Code:
switch (tagname)
{
case 'CODE':
case 'HTML':
case 'PHP':
{
this.apply_format('removeformat');
}
case 'VBA':
{
useoption = true;
}
break;
}
It is a code for VBA formatting, and I just need the button to wrap the text in [VBA][/VBA]. But with these changes there is nothing on the toolbar.
Any ideas?
Thanks for you assistance.
Jake