Changeset 303

Show
Ignore:
Timestamp:
01/09/06 21:43:09 (3 years ago)
Author:
athomas
Message:

AddCommentMacro:

  • Use wikitoolbar javascript auto magic.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • addcommentmacro/0.9/AddComment.py

    r112 r303  
    8181    out.write("<form action='%s#commentpreview' method='get'>\n" % env.href.wiki(pagename)) 
    8282    out.write("<fieldset>\n<legend>Add comment</legend>\n") 
    83     out.write("<div class='field'>\n<textarea id='addcomment' name='addcomment' cols='80' rows='5'%s>" % disabled) 
     83    out.write("<div class='field'>\n<textarea class='wikitext' id='addcomment' name='addcomment' cols='80' rows='5'%s>" % disabled) 
    8484    if wikipreview: 
    8585        out.write("Page preview...") 
     
    9393    out.write("<input type='submit' name='canceladdcomment' value='Cancel'%s/>\n</div>\n" % disabled) 
    9494    out.write('<script type="text/javascript" src="%sjs/wikitoolbar.js"></script>' % hdf['htdocs_location']) 
    95     out.write("<script type='text/javascript'>\naddWikiFormattingToolbar(document.getElementById('addcomment'));\n</script>\n") 
    9695    out.write("</fieldset>\n</form>\n") 
    9796