Page 1 of 1

Inserting line-break after specialized <br/> element

Posted: Tue Dec 13, 2016 4:34 pm
by tmakita
Hi,

I introduced new "br" element by DITA specialization per user request. This will be useful for HTML output.

The specialization is here:

ah-dita/com.antennahouse.dita.dita13.doctypes/

https://github.com/AntennaHouse/ah-dita ... 3.doctypes

The "br" element displays fine in the oXygen Author visual editing mode. But my user want to insert line-break after this element. Is it possible by writing custom CSS framework? I attached current screenshot. (display: block; is not the desired result.)

https://1drv.ms/i/s!AkbL99fLhxKU30993Rm-S9YrQWrc

Regards,

Re: Inserting line-break after specialized <br/> element

Posted: Tue Dec 13, 2016 5:12 pm
by Radu
Hi,

Maybe use something like this:

Code: Select all

br:after{
content:"\A";
}
could be closer to what you want...

Regards,
Radu

Re: Inserting line-break after specialized <br/> element

Posted: Wed Dec 14, 2016 9:09 am
by tmakita
Hi Radu,

Thank you for your quick reply.
I will try it as soon as possible.

Here is one more question. Originally "br" is defined as EMPTY tag in DTD. But oXygen displays it using start tag icon and end tag icon.
Doesn't oXygen visual editing mode has simple empty tag icon?

Regards,

Re: Inserting line-break after specialized <br/> element

Posted: Wed Dec 14, 2016 10:50 am
by Radu
Hi Toshihiko,

Most of the times empty elements allow attributes to be set on them. So the end user might place the caret inside the element (and might need those guiding triangles to do so) in order to edit attributes on the element.
If you want from the CSS you can hide the tags for br:

https://www.oxygenxml.com/doc/versions/ ... -tags.html

and add some custom image as static content on the element.

Regards,
Radu

Re: Inserting line-break after specialized <br/> element

Posted: Thu Dec 15, 2016 8:23 am
by tmakita
Hi Radu,
and add some custom image as static content on the element.
Thank you for the nice idea!

Regards,