Index: openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html,v diff -u -r1.8 -r1.8.4.1 --- openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html 11 Dec 2010 23:36:32 -0000 1.8 +++ openacs-4/packages/acs-core-docs/www/tutorial-wysiwyg-editor.html 21 Aug 2013 10:19:33 -0000 1.8.4.1 @@ -1,8 +1,8 @@ -Enabling WYSIWYG

Enabling WYSIWYG

by Nima Mazloumi

+Enabling WYSIWYG

Enabling WYSIWYG

by Nima Mazloumi

OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

Most of the forms in OpenACS are created using the form builder, see Using Form Builder: building html forms dynamically. For detailed information on the +

Most of the forms in OpenACS are created using the form builder, see the section called “Using Form Builder: building html forms dynamically”. For detailed information on the API take a look here.

The following section shows how you can modify your form to allow WYSIWYG functionalities.

Convert your page to use ad_form (some changes but worth it)

Here an examples. From:

 	template::form create my_form
 	template::element create my_form my_form_id -label "The ID" -datatype integer -widget hidden
@@ -20,7 +20,7 @@
 	       	   {after_html
                {<a name="#">Anchor</a>}}}
 	} ...
-	

Warning

You must not give your your form the same name that your page has. Otherwise HTMLArea won't load.

Convert your textarea widget to a richtext widget and enable htmlarea.

The htmlarea_p-flag can be used to prevent +

Warning

You must not give your your form the same name that your page has. Otherwise HTMLArea won't load.

Convert your textarea widget to a richtext widget and enable htmlarea.

The htmlarea_p-flag can be used to prevent WYSIWYG functionality. Defaults to true if left away.

From:

 	{my_input_field_2:text
 	

To: