Announcement

Collapse
No announcement yet.

How to add Justify Tag

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

  • How to add Justify Tag

    Screenshots:

    Click image for larger version

Name:	1test.gif
Views:	1
Size:	10.4 KB
ID:	3703619

    Click image for larger version

Name:	2test.gif
Views:	1
Size:	17.7 KB
ID:	3703620

    How to do:

    Add New BB Code:



    Admin CP -> Custom BB Codes -> Add New BB Code -> *and use the value below*
    Title: justify
    Tag: justify
    Replacement: <div align="justify">{param}</div>
    Example: justify
    Description: justify
    Templates to edit: editor_toolbar_on

    Search for:

    HTML Code:
    <if condition="$stylevar['textdirection'] == 'ltr'">
        <td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
    Below Add:

    HTML Code:
    <td><div class="imagebutton" id="vB_Editor_001_cmd_wrap0_Justify"><img src="images/editor/justify.gif" alt="Wrap [JUSTIFY] tags around selected text" width="21" height="20" border="0" /></div></td>






    And search for:

    HTML Code:
    <td><div class="imagebutton" id="{$editorid}_cmd_justifyright"><img src="$stylevar[imgdir_editor]/justifyright.gif" width="21" height="20" alt="$vbphrase[align_right]" /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_justifycenter"><img src="$stylevar[imgdir_editor]/justifycenter.gif" width="21" height="20" alt="$vbphrase[align_center]" /></div></td>
        <td><div class="imagebutton" id="{$editorid}_cmd_justifyleft"><img src="$stylevar[imgdir_editor]/justifyleft.gif" width="21" height="20" alt="$vbphrase[align_left]" /></div></td>
    Below add:

    HTML Code:
    <td><div class="imagebutton" id="vB_Editor_001_cmd_wrap0_Justify"><img src="images/editor/justify.gif" alt="Wrap [JUSTIFY] tags around selected text" width="21" height="20" border="0" /></div></td>
    Files to upload:

    Upload this images Click image for larger version

Name:	justify.gif
Views:	1
Size:	72 Bytes
ID:	3703621 to your forum/images/editor Folder.
    Last edited by Mazinger; Thu 3rd May '07, 11:19pm.
    $post[signature]
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X