Can I set a default attribute of an element?

mdslup
Posts: 148
Joined: Tue Mar 06, 2018 1:34 am

Can I set a default attribute of an element?

Post by mdslup » Wed Feb 19, 2020 2:59 am

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: 7207
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Wed Feb 19, 2020 1:31 pm

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