Inserting line-break after specialized <br/> element
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Inserting line-break after specialized <br/> element
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,
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,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Inserting line-break after specialized <br/> element
Hi,
Maybe use something like this:
could be closer to what you want...
Regards,
Radu
Maybe use something like this:
Code: Select all
br:after{
content:"\A";
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Re: Inserting line-break after specialized <br/> element
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,
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,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Inserting line-break after specialized <br/> element
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 116
- Joined: Fri Apr 08, 2011 7:58 am
Re: Inserting line-break after specialized <br/> element
Hi Radu,
Regards,
Thank you for the nice idea!and add some custom image as static content on the element.
Regards,
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service