File: example.php

Recommend this page to a friend!
  Classes of Vinay Yadav  >  of_htmlarea  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Script
Class: of_htmlarea
Cross-Browser WYSIWYG Editor
Author: By
Last change:
Date: 17 years ago
Size: 997 bytes


Class file image Download
 * Demo script to show the usage of of_htmlarea


$f = new form;

"value"=>"This is the default content",
"initOnLoad"=>true, // plays a lot of trick

 * Example Usage
echo '<body onload="initEditor();">
        <form action="test.cgi" method="post">'

  Example Use with no onload in body
  (initEditor is removed from onload event of body.)

  Set initOnLoad to false ( or simply remvoe the line containing iniOnLoad)

  This code matters only on mozilla - On IE both code work fine.
 echo '<body>
        <form action="test.cgi" method="post">';
 echo $f->ge('content');
 echo "</form></body></html>";

For more information send a message to info at phpclasses dot org.