Changing default attribute values
Posted: Sat Oct 18, 2008 12:11 am
My specific problem is this:
I'd like to have the editor (using 9.3) automatically fill in the outputclass attribute to "stdimage" whenever I add an image to a DITA file. Our style guide requires a certain spacing around images, and the best way I've found to support that is through custom CSS. I'd like to make this brainless and thus change the default attribute value to our CSS class. I'd also like to change the default value of the placement attribute to be "break" as well for similar reasons.
In general, though, is there a way to change the default attribute values for XML elements when they're entered in the editor? It would really make our life simple if that was the case.
Thanks!
I'd like to have the editor (using 9.3) automatically fill in the outputclass attribute to "stdimage" whenever I add an image to a DITA file. Our style guide requires a certain spacing around images, and the best way I've found to support that is through custom CSS. I'd like to make this brainless and thus change the default attribute value to our CSS class. I'd also like to change the default value of the placement attribute to be "break" as well for similar reasons.
In general, though, is there a way to change the default attribute values for XML elements when they're entered in the editor? It would really make our life simple if that was the case.
Thanks!