Since Alex released his js quick tags – it seemed like the perfect thing to add to the comments form so that people could put in the html tags more easily. However, while his script is really powerful – just for the comments form, it's more than what's needed. So I stripped it down to the most basic version – using only the most common HTML tags used in comments – italic, bold, and links.
Here are the instructions on how to integrate it into your (wordpress) comments:
First and foremost – if you want to add code, or use the full version – you can download that from Alex's site.
To use the "mini" version I made:
1) Download the js file and upload it to the root of your domain.
2) Open up your wp-comments.php page… Look for the beginning of the comments form – (search for <form in the file) and put this just above it:
<script src="/js_quicktags-mini.js" type="text/javascript"></script>
Look for the text area field for comments which looks like this <textarea name="comment" id="comment" cols="40" rows="6" tabindex="4"></textarea> and add this directly above it:
<script type="text/javascript">edToolbar();</script>
And add this BELOW the textarea field:
<script type="text/javascript">var edCanvas = document.getElementById('comment');</script>
This is the method I'm using on this site – although I added the "h3" tag just for the one I use, since that's what I use to stylize code on this site. You can easily add more… or start from scratch using Alex's.
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.
scriptygoddess

