Jump to content
  • 0

Rich Text Area



4 answers to this question

Recommended Posts

  • 0

1. Your table has a text 64k field called "html_text". Your DP includes the field and form element is text area.
2. Place the following code in the DP header:

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/assets/skins/sam/skin.css">
<!-- Utility Dependencies -->
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js"></script>
<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
<script src="http://yui.yahooapis.com/2.5.2/build/container/container_core-min.js"></script>
<script src="http://yui.yahooapis.com/2.5.2/build/menu/menu-min.js"></script>
<script src="http://yui.yahooapis.com/2.5.2/build/button/button-min.js"></script>
<!-- Source file for Rich Text Editor-->
<script src="http://yui.yahooapis.com/2.5.2/build/editor/editor-beta-min.js"></script>

3. Place the following code in the DP footer:

window.onload = function() {
var myEditor = new YAHOO.widget.Editor('InsertRecordhtml_text', {
   height: '400px',
   width: '600px',
   dompath: true,
   animate: true
document.getElementById("caspioform").onsubmit = function() {

//var myHTML = myEditor.get('element').value;

4. Your webpage should have <body class="yui-skin-sam">

5. The 'InsertRecordhtml_text' should be updated with your field name reference.

----- On Update page and Details Page -----

Repeat Steps 1 through 4.
on Step 5 replace 'InsertRecordhtml_text' with 'EditRecordhtml_text' where the html_text is your field name.

Now if you wish to dispaly data on your DataPage as "Dispaly only" format make sure to Render the value as "HTML". Data is being saved into the table along with HTML tags.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...