Can I set a default attribute of an element?

Post here questions and problems related to editing and publishing DITA content.
mdslup
Posts: 167
Joined: Tue Mar 06, 2018 1:34 am

Can I set a default attribute of an element?

Post by mdslup »

I want all my images to be on a newline. However, Oxygen defaults to showing images inline. So for every single image, I have to set the "Placement" attribute to be "break". Is there a way to change this default?
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Can I set a default attribute of an element?

Post by Radu »

Hi,

From what we tested the "Insert Image" action from the toolbar should preserve in the configuration dialog your choice of image placement between application restarts.
This aspect you want has two sides:

1) The publishing part. Do you want the publishing to break lines before images even if the "placement='break'" attribute is not specified on them? If so, you will need some kind of custom publishing plugin overwriting the image processing templates.

2) The visual editing. Do you want the editing to visually break lines before images even if the "placement='break'" attribute is not specified on them? The visual editing is CSS based so using the CSS Inspector view you can locate the CSS which defines the image styles and force a display block on it.

https://blog.oxygenxml.com/topics/customizeDITACSS.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply