AW Quick Tag Editor – FAQ
| 928 views
Complete usage guide for AW Quick tag editor
Basic Usage
- Include the javascript file
awQuickTag.jsin your page using the code<code><script type="text/javascript" src="Path to awQuickTag.js"></script></code>
- Include the CSS file
awQuickTag.cssif required in your page using the code<code><link rel="stylesheet" href="Path to awQuickTag.css" type="text/css" media="screen" /></code>
- Add the buttons, links or images for the toolbar with the "onclick" value calling the function
<code>awQuickTags ('ID of the textarea', 'Opening Tag', 'Closing Tag', 'Action');</code> - Add the <textarea></textarea> tag below the buttons with a specific ID.
- Optionally add the
<code><script type="text/javascript">awQuickTagInitiliaze('ID of the textarea');</script></code>for the cookieing the toolbar.
awQuickTags() Function
The awQuickTags() is the main function for adding the code to the textarea. You should call this function by the onclick event as
<code>onclick="awQuickTags();"</code>
This function has three parameters.
<code>awQuickTags('Param 1', 'Param 2', 'Param 3', 'Param 4');</code>
- Param 1 :
- ID of the
<textarea>tag - Param 2 :
- Opening Tag eg:
<strong> - Param 3 :
- Closing Tag eg:
</strong> - Param 4 :
- Action – Has Three actions and accepted values are
''– No value – For wrapping the selected text with Opening and Closing tag'a'– Link – For adding link'img'– Image – For adding Image'replace'– Replace/Add – For replacing/adding text with the opening tag. The closing tag has no use when this action is used
Example
<code>awQuickTags('textBox', '<strong>', '</strong>', '')</code>
Reference Buttons
<code><p><input type="button" onClick="awQuickTags('aw_content','<strong>','</strong>','');" value="B" title="Bold"/></p><p><input type="button" onClick="awQuickTags('aw_content','<em>','</em>','');" value="I" title="Italic"/></p><p><input type="button" onClick="awQuickTags('aw_content','<u>','</u>','');" value="U" title="Underline"/></p></code>
Demo
See the demo here
Download
Click the link below to download AW Quick tag editor
AW Quick Tag Editor
| 782 views | Tagged - Work
- Features
- Screenshot and Demo
- Download
Features
- Light weight (only 2.4kb) .
- Cross browser support
- No additional files or images required.
- Customizable with CSS
- Can be easily added.
- Can include any no of toolbars in a single page.
- Can add infinite no of buttons with various actions without the knowledge of coding.
- Suits comment forms, reply forms and other simple needs
- Can create sub toolbars for the main toolbar with the ability of toggling them with cookies.
Download
Click the link below to download AW Quick tag editor
FAQs: FAQs and Usage on AW Quick Tag editor
