Help
ItemHtmlEditor
This component shows the HTML editor for a course item or activity. This component cannot be used for items of type Folder, AssetLink, CustomActivity, or RssFeed.
Preview
Properties
ParameterTypeMeaning
EnrollmentIdStringID of the enrollment for which to edit the item HTML. This should be an author enrollment. The enrollment implies a user, course and section.
ItemIdStringID of the item HTML to edit.
GroupIdStringID of the group for which to edit the item HTML. If the parameter is omitted, the "All Groups", or course HTML is edited.
ShowSaveBooleanSpecify true for the component to show the "Save" button; specify false to hide the button. Default is true.

If you hide the button, ensure that code exists that calls the saveComponent method to save progress.
ShowCancelBooleanSpecify true for the component to show the "Cancel" button; specify false to hide the button. Default is true.
Events
To listen to events, call addListener on the Frame API.
EventDescription
componentcancelledFires when the component is cancelled. ShowCancel must be true for this event to fire.
componentsavedFired when the content is saved. Supplies an itemId property on the state object whose value is the ID of the saved item.
See Also
Syllabus ItemEditor Frame API saveComponent componentsaved componentcancelled