#41 H1 up to H6 in edit tool bar for wiki

closed
zaufi
None
5
2003-07-16
2003-06-17
No

I suppose this is a matter of taste and a subject for
endless discussion, but anyway it served its purpose in
my implementation of tikiwiki...

I felt the need for up to 6 Heading styles , so I changed
lib/tikilib.php
templates/tiki-edit_help_tool.tpl
accordingly.

I just added some trivial lines...

pascal van hecke

Discussion

  • Pascal Van Hecke

    Modified tikilib.php

     
  • Pascal Van Hecke

    Logged In: YES
    user_id=682482

    tikilib.php:

    line 4092:
    } elseif(substr($line,0,6)=='!!!!!!') {
    $line = '<h6>'.substr($line,6).'</h6>';
    } elseif(substr($line,0,5)=='!!!!!') {
    $line = '<h5>'.substr($line,5).'</h5>';
    } elseif(substr($line,0,4)=='!!!!') {
    $line = '<h4>'.substr($line,4).'</h4>';
    } elseif(substr($line,0,3)=='!!!') {
    $line = '<h3>'.substr($line,3).'</h3>';
    } elseif(substr($line,0,2)=='!!') {
    $line = '<h2>'.substr($line,2).'</h2>';
    } elseif(substr($line,0,1)=='!') {
    $line = '<h1>'.substr($line,1).'</h1>';

    tiki-edit_help_tool:
    line 10:
    <a title="{tr}heading4{/tr}" class="link"
    href="javascript:setSomeElement('{$area_name}','!!!!text');">{tr}h4{/tr}</a>|
    <a title="{tr}heading5{/tr}" class="link"
    href="javascript:setSomeElement('{$area_name}','!!!!!text');">{tr}h5{/tr}</a>|
    <a title="{tr}heading6{/tr}" class="link"
    href="javascript:setSomeElement('{$area_name}','!!!!!!text');">{tr}h6{/tr}</a>|

     
  • zaufi

    zaufi - 2003-07-16
    • assigned_to: nobody --> zaufi
    • status: open --> closed
     
  • zaufi

    zaufi - 2003-07-16

    Logged In: YES
    user_id=806285

    implemented in other way... and '!'..'!!!!!!' maped to <h1> to <h6>.

     

Log in to post a comment.