C4F Textarea Toolbar

C4F Textarea Toolbar adds a toolbar for markup and emoticons insertion to WordPress comments' textarea. It is extremely easy to set up and customize.

Description

C4F Textarea Toolbar is a plugin for WordPress aimed at providing a simple yet very useful and precise tool to insert emoticons and markup in the comments' textarea. The JavaScript code used has been written to specifically address most (if not all) flaws in the interpretation of cursor position and text replacement of the other smilies/markup inserting tools you can find in forums and blogs and it does so by also taking into account the many differences among the major browsers.

With C4F Textarea Toolbar installed on your blog you and your readers will live a hassle-free comment's writing experience being able to really insert emoticons and formatting markup in place without getting your cursor thrown at the end of the text or your text bumped up and the like.

Features Summary

C4F Textarea Toolbar is the first plugin written by the Code4Fun Team, if you find it useful and would like to help the project, please consider a contribution to the Code4Fun Project.

Installation

C4F Textarea Toolbar installation is extremely easy:

  1. Download the plugin, unpack it and upload the whole c4f-textarea-toolbar folder to the /wp-content/plugins/ directory
  2. Activate C4F Textarea Toolbar through the Plugins menu in the Administration Panel
  3. Place <?php C4F_TextareaToolbar(); ?> in your template (Optional but Recommended)
    • To avoid the plugin's function to be called (resulting in an error) when you disable the plugin, you might want to include the function using a conditional statement as in the following example:
      <?php if (function_exists("C4F_TextareaToolbar")) C4F_TextareaToolbar(); ?>
  4. Check the options' page in your Administration Panel to configure C4F Textarea Toolbar

Optional for advanced users

You can set up C4F Textarea Toolbar also through parameters in an array inside the function call. The funcion accepts the following parameters:

The credit parameter accepts a true/false value, while the showhat parameter accepts three values:

Here are two examples of how the parameters can be defined inside the function:

  1. <?php C4F_TextareaToolbar(array("showhat" => "only_smilies", "credit" => true)); ?>
  2. <?php
    $params = array("showhat" => "only_controls", "credit" => false);
    C4F_TextareaToolbar($params);
    ?>

Note that by using parameters inside the function you will override the option panel's settings.

Download

You can download C4F Textarea Toolbar from the wordpress.org plugins repository.

License

C4F Textarea Toolbar Plugin is released under the GNU General Public License, you can find a copy inside the package or read it directly online.

[Back to Top]