Announcement

Collapse
No announcement yet.

Custom BBcode on Wysiwyg Menu

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

  • Custom BBcode on Wysiwyg Menu

    Hello All,

    Every time we add a new custom bbocode with the a new button, this button is automatically added to the wysiwyg menu. It keeps going to the right and eventually mess up the bar.

    Is there a way that we can start those addons onto a new line?

    Thanks
    Family means No One Gets Left Behind
    or.. Forgotten

  • #2
    Edit this template:

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

    Find this code, remove the red code, add the blue code:

    Code:
    			<if condition="$show['php_bbcode']">
    			<td><div class="imagebutton" id="cmd_wrap0_php"><img src="$stylevar[imgdir_editor]/php.gif" alt="$vbphrase[wrap_php_tags]" width="21" height="20" /></div></td>
    			</if>
    		
    			<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td>
    			<td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]" width="21" height="20" /></div></td>
    			$vBeditTemplate[extrabuttons]
    		
    		</tr>
    		</table>
    	</div>
    	<!-- / second control row -->
    
    	<if condition="$vBeditTemplate[extrabuttons]">
    	<!-- third control row -->	
    	<div class="controlholder">
    		<table cellpadding="0" cellspacing="0" border="0">
    		<tr>
    			$vBeditTemplate[extrabuttons]
    		</tr>
    		</table>
    	</div>
    	<!-- / third control row -->
    	</if>
    	
    <!-- end control bar --></div><!-- / end control bar -->
    
    	
    	
    	</td>
    </tr>
    <tr valign="top">
    	<td class="controlbar">
    That should do it.

    Comment


    • #3
      Thanks Jake

      It works like a charm.
      Family means No One Gets Left Behind
      or.. Forgotten

      Comment


      • #4
        When BBCODE gone right. How to put in second line without BBCODE to right gone down. I put new BBCODES down (Second Line)

        Comment


        • #5
          Do you know anyone....?

          Comment

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