Re: how can i add buttons like this post area?
Using Comment Form Quicktags (which puts it for the blog), I was able to tweak a little and get it to work by manually editing files.
For the Wire, I edited my theme’s membertheme/wire/post-forum.php from
<textarea name="wire-post-textarea" id="wire-post-textarea"></textarea>
to
<script type="text/javascript">edToolbar();</script>
<textarea name="wire-post-textarea" id="wire-post-textarea"></textarea>
<script type="text/javascript">var edCanvas = document.getElementById('wire-post-textarea');</script>
In theory the plugin should be hackable, but adding this:
add_action('wire-post-textarea', array(&$this, 'detect_end'));
to
/**
* Start to detect <textarea>.
*/
function detect_start($file) {
ob_start(array(&$this, 'add_tags'));
$this->ended = false;
add_action('comment_form', array(&$this, 'detect_end'));
add_action('wp_footer', array(&$this, 'detect_end'));
return $file;
}
didn’t work so I’ll have to keep poking around.