Custom Tags Define custom tags attributes in the jsxelement tag.
ADOBE SYSTEMS INCORPORATED
Copyright 2000-2002 Adobe Systems Incorporated
All Rights Reserved
NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the prior written permission of Adobe.
Extension Name: RedefineTag
Folder Name: RedefineTag
This extension shows a how to redefine a standard GoLive tag for all instances of that tag, display a custom box associated with the standard tag, add custom attributes, and create a customized Inspector.
If you want to customize only select instances of a standard GoLive tag, please see the RedefineTagSelective sample.
Note: Do not enable both the RedefineTag and RedefineTagSelective extensions in the same GoLive session. If both extensions are loaded, when switching to source view and back, the image tag or redefined image tag will become invisible.
This sample shows how to redefine an existing tag by creating a jsxelement with the same name as the standard GoLive tag. In this example, we redefine the Image tag (this is only a partial implementation of the Image tag properties). The extension shows how to create a custom box for this tag and redefine the Inspector (both are optional). The Inspector allows the user to edit the standard and custom attributes of the tag. You cannot change the display of the tag in the Objects Palette. When Image is dropped onto a page, it displays its own custom box rather than the Image icon.
Palette: When the Image tag on the Basic tab of the Objects Palette is dropped onto a page, a custom box is displayed in the document and custom attributes are added to the Image tag.
How to use:
In the Objects Palette, select the Basic tab. Select Image and drop it onto an HTML page (the extension draws custom box that displays on the page). Select the Image that was dropped onto the page. In the Inspector, view or modify settings for height, width, source, and the custom attributes abc and xyz.
Scripts:
User Interface Tags:
Inspectors Define Inspectors for custom tags