ADOBE SYSTEMS INCORPORATED
Copyright 2001-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: RedefineTagWithGlue
Folder name: RedefineTagWithGlue
Description:
This sample extension shows how to redefine an existing tag by using "MarkupGlue". The markup glue ties the element custom box and inspector to the document type specified in the .aglmgb file that is loaded by the extension (using markup.loadGlueBase()).
The following tables described the files used by the extension, and indicate where the files should be installed.
Files in RedefineTagWithGlue/Settings folder
File | Description |
---|---|
MarkupGlue/abcml/abcml.aglmgb | Glues ABCML elements to ABCML documents. Defines public identifier. Defines extension for abcml documents. |
MarkupGlue/abcml/abcml1/abcml.dtd | DTD for ABCML. After the extension calls settings.markup.loadGlueBase in the initializeModule() callback, ABCML displays in the Edit > Web Settings > Markup window. |
Copy the following files to the GoLive/Settings folder:
File | Description |
---|---|
DocumentStore/abc.agldex | Adds ABCML Page to File > New Special menu. |
DocumentStore/examples/simple.abcml | File that opens on New Special > ABCML Page. |
MarkupConfig/abcml.aglmen | Adds ABCML 1.0 to Objects Palette menu > Configure |
The extension defines an extremely simple XML DTD for a doctype ABCML. An ABCML page may contain either P or Img tags. The img tag is defined differently than the standard HTML img tag. For example, it has only two attributes -- artist and medium.
Create a new ABCML Page: Select File > New Special > ABCML Page.
Insert Img in ABCML Page: Choose the ABCML tab in the Objects Palette. Drag and drop the Img tag into the ABCML tag on the ABCML Page.
Inspect the Img tag: Highlight the img tag, and open the Inspector. The custom inspector for the img tag display the current settings of the artist and medium attributes.
NOTE: Can't get MarkupConfig to do anything besides display in the menu.Should be able to disable objects....
Module Definition:
Scripts:
User Interface Tags:
These tags are commented out to avoid affecting the user interface.
Image Define images here. These are referenced by the picture attribute of the jsxpaletteentry and jsxpalettegroup tags.
Custom Tags Define custom tags attributes in the jsxelement tag.
Inspectors Define Inspectors for custom tags
|
||||
|
||||
|
||||
|
||||
JSXLocale Specify localized versions of strings used in menu items, dialogs, alerts, etc.
US | DE | FR |
---|---|---|
Palette Group Define a new tab for the Object Palette, or add to an existing tab.