Background Image
Web
Development
Tools
Tool...
49 Projects
Web Development Project
Web
Development
Project
Product: Advanced Plain Text Editor
Product Large Image

Details:

Last update:2010-09-07 20:05:31
Download:Not Available
License:GNU Free Documentation License, Version 1.3
Version:v1.01
Price:Free!

Description:

A cross-browser plain text editor. Easy to implement into your own website. The user can resize and change the font of the textarea.

Table of content
Installation guide
Reference

Installation guide



Step 1: Download the following zip file: APTE.zip
Step 2: Unzip it into the folder you want, into a separate folder named 'APTE' or into any other folder.
Step 3: Add the following HTML in the tag (be sure to check the src and href attribute):

Code Snippet (Syntax highlighted) - Toggle Wrap

<script type='text/javascript' src='APTE-v-1-01-script.js'></script>
<link rel="stylesheet" href="APTE-v-1-01-style.css" type="text/css" />

Reference



Function prototype:
Code Snippet (Syntax highlighted) - Toggle Wrap

CreateAPTE(edit_name, toolbar, width, height, bgcolor, statusbar, family, color, size, underline, bold, italic)


These are the paramaters and their possible values:
Code Snippet (Syntax highlighted) - Toggle Wrap

edit_name - A string of characters that you want as name for the textarea
toolbar - 'on' or 'off'
width - a number higher than 350
height - a number higher than 210
bgcolor - a color or hexadecimal code
statusbar - 'on' or 'off'
family - a font family (e.g. 'Calibri', 'Times New Roman')
color - a color or hexadecimal code
size - a number higher than or equal to 0 and lower than 100
underline - 'on' or 'off'
bold - 'on' or 'off'
italic - 'on' or 'off'


An example of the usage of APTE:

The HTML:
Code Snippet (Syntax highlighted) - Toggle Wrap

<form method='post'>
Name: <input type='text' name='your_name' /><br />
Description:<br />
<script type='text/javascript'>CreateAPTE("description", 'on', 500, 500, 'red', 'on', null, 'white', 20, 'on', 'off', 'on');</script>
<br />
<input type='submit' name='submbutton' value='Submit the form!' />
</form>


And the value of the textarea will be send with the form:

Code Snippet (Syntax highlighted) - Toggle Wrap

Example for PHP form handling:

$your_name = $_POST['your_name'];
$desc = $_POST['description']; // This will contain the value of the description
Latest news
New project: Math Quiz
2010-11-09 18:07:48
Read more...

New project: Custom Messagebox
2010-11-06 19:10:50
Read more...

New project: Visitor Counter
2010-11-01 21:39:04
Read more...

New project: Image Editor
2010-11-01 21:37:27
Read more...

New project: Image Generator
2010-11-01 21:33:05
Read more...

Projects Contact © 2010 WDP - All rights reserved Terms and Conditions Log in