Home Forums General XMetaL Discussion Use element with attributes in the CTM file, instead of just the element tag. Reply To: Use element with attributes in the CTM file, instead of just the element tag.

Derek Read

Reply to: Use element with attributes in the CTM file, instead of just the element tag.

The CTM settings that enable the functionality of these toolbar items require that each list have a different main element. This feature has no logic that will allow you to easily get it to do something with attributes.

You will need to create macros that perform the insertion according to the specific markup required. I have no examples for scripts that would work for this type of markup and it could be quite tricky. APIs that would probably be of use would include:

Selection.Surround()
Selection.IsInsertionPoint
Selection.InsertWithTemplate()

I'm not sure that Selection.ToggleInline would be useful in this case as there are two elements that make up a list, the list element and the list item element.

Reply

Products
Downloads
Support