Announcement

Collapse
No announcement yet.

Removing The Wrap PHP Tags Option In The WYSIWYG?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing The Wrap PHP Tags Option In The WYSIWYG?

    How do i remove this option?

    Thx...Martin.

  • #2
    The [PHP] tag already doesn't wrap its contents. For example:

    PHP Code:
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 

    Comment


    • #3
      Oh, I see what you meant. You can disable the CODE tag in your:

      Admin CP -> vBulletin Options -> BB Code Settings -> Enabled Built-in BB Codes

      Or you can remove the button from the templates by editing this template:

      Admin CP -> Styles & Templates -> Style Manager -> -> Editor Templates -> editor_toolbar_wysiwyg

      Find and remove this code:

      Code:
      			<if condition="$show['code_bbcode']">
      			<td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
      			</if>

      Comment


      • #4
        Originally posted by Jake Bunce View Post

        Or you can remove the button from the templates by editing this template:

        Admin CP -> Styles & Templates -> Style Manager -> -> Editor Templates -> editor_toolbar_wysiwyg

        Find and remove this code:

        Code:
                    <if condition="$show['code_bbcode']">
                    <td><div class="imagebutton" id="cmd_wrap0_code"><img src="$stylevar[imgdir_editor]/code.gif" alt="$vbphrase[wrap_code_tags]" width="21" height="20" /></div></td>
                    </if>
        Will this just remove the image? Or disable the use of the code too?

        Plus I would comment it out, but that just me
        Last edited by RobbieZ; Tue 4th May '10, 2:46pm.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X