Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

INSITE.EDIT

Edits assets from the user interface.

Syntax

Parameters

ASSETID (required)
Id of the asset to be edited.

ASSETFIELD (required)
Name of the field of the asset to be edited.

ASSETTYPE (required)
Type of asset to be edited.

EWEBEDITPRO (deprecated)
Deprecated. Use EDITOR parameter instead.

MODE (optional)
Legal values are html or text. The default value is html. When choosing text, Sites will encode characters such as <, >, &, < space >, " and '

EDITOR (optional)
The name of the editor to use for the attribute. Valid values are:
  • fckeditor - uses the FCKeditor rich text editor
  • ewebeditpro - uses the EWebEditPro rich text editor
  • text - the old inline text editor; works only in Internet Explorer
  • dojotext (default) - like text, but works in both Internet Explorer and Firefox
  • number (for numeric fields) - like dojotext, but can impose numeric restrictions on values
  • spinner (for integer fields) - like number, but adds up/down arrows to increment/decrement the value
  • currency (for money fields) - like number, with some additional restrictions
  • calendar (for date fields) - displays a calendar to select a date

PARAMS (optional)
when editor is specified as "dojotext", "number", "spinner", "currency", or "calendar", this specifies, in JSON format, the parameters that should be passed to the underlying Dojo widgets. See The Dojo Toolkit for more information about the widgets.
when editor is specified as "fckeditor", you may specify editorId and enableEmbeddedLinks in JSON format. See example.

WIDTH (optional)
Width of the asset in percentage or pixels. The default value is 100% for eWebEditPro or 450 pixels for FCKEditor. When combined with editor="dojotext", specifying a value (in pixels) for the width attribute will display a fixed-size edit box, instead of an autoresizable edit box.

HEIGHT (optional)
Height of the asset in pixels only. The default value is 200 pixels. Percentage values are unsupported. Height only works for FCKEditor.

Additionally, one of the following must be specified:

Description

This tag allows you to edit assets from the Insite Editor UI. When viewed outside of the InSite Editor UI, this tag behaves exactly like RENDER.STREAM when MODE="html", or like STRING.STREAM when MODE="text".

When editing flex assets, the attribute name should be preceded by the prefix Attribute_ in the value of ASSETFIELD; for example, the FSIIBody attribute should be specified as Attribute_FSIIBody. For more information about editing assets, see the Sites Developer's Guide.

Examples

The following example facilitates editing a string field, using the default dojotext field editor (which supports both Internet Explorer and Firefox).

The following example facilitates editing a string field, using the formerly-default inline text field editor (which only supports Internet Explorer). It also illustrates initializing the value from a field in a list.

The following example facilitates editing a blob field with FCKEditor.

The following example facilitates editing a blob field with specific FCKeditor.

The following example facilitates editing a date field with Dojo's calendar widget.

The following example facilitates editing an 'int' flex attribute with dojo's NumberSpinner widget.

The following example facilitates editing a 'money' flex attribute with dojo's CurrencyTextBox widget.

  Home > Contents > Index >

Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.