Introduction back to top
What is TextAreaPro?Requirements back to top
What are the browser requirements?
How do I add TextAreaPro to my web page?
It's easy, first you need to upload the TextAreaPro files to your website. Just
follow these steps:
<script language="Javascript1.2"> | |
//Directory must end with a '/' | |
//Examples: | |
// AK_editor_url = "TextAreaPro/"; | |
AK_editor_url = ""; | |
document.write('<scr' + 'ipt src="' + AK_editor_url+ 'wysiwyg.js" language="Javascript1.2"></scr' + 'ipt>'); | |
</script> |
<script language="JavaScript"> | ||
//comment any button that you want to hide | ||
var AK_DisplayedButtons = Array( | ||
'FontName', | ||
'FontSize', | ||
'SelectAll', | ||
'Delete', | ||
'Cut', | ||
'Copy', | ||
'Paste', | ||
'SaveAs', | ||
'Print', | ||
'Separator', | ||
'Bold', | ||
'Italic', | ||
'Underline', | ||
'Strikethrough', | ||
'Separator', | ||
'JustifyLeft', | ||
'JustifyCenter', | ||
'JustifyRight', | ||
'JustifyFull', | ||
'Separator', | ||
'InsertOrderedList', | ||
'InsertUnorderedList', | ||
'Outdent', | ||
'Indent', | ||
'Separator', | ||
'SuperScript', | ||
'SubScript', | ||
'Separator', | ||
'InsertHorizontalRule', | ||
'CreateLink', | ||
'Unlink', | ||
'Image', | ||
'Table', | ||
'SpecialChars', | ||
'Separator', | ||
'Forecolor', | ||
//'Backcolor', | ||
'Separator', | ||
//'Date', | ||
'ChangeMode', | ||
'Separator', | ||
'Help' //the last one has NO comma | ||
); | ||
var AK_width = 600; | ||
var AK_height = 300; | ||
// All fields are optional. Place "null" where you don't want to specify. | ||
//ak_wysiwyg_generator(width, height, "TextAreaName", DisplayedButtonList); | ||
ak_wysiwyg_generator(AK_width, AK_height, "MyTextAreaName", AK_DisplayedButtons); | ||
//Examples: | ||
// ak_wysiwyg_generator(null, null, "MyTextAreaName", AK_DisplayedButtons); | ||
// ak_wysiwyg_generator(AK_width, AK_height, null, AK_DisplayedButtons); | ||
// ak_wysiwyg_generator(AK_width, AK_height, "MyTextAreaName", null); | ||
// It can be no parameter at all | ||
// ak_wysiwyg_generator(); | ||
</script> |