How to set text width in Author mode?

Oxygen general issues.
elaine_blath
Posts: 9
Joined: Thu Oct 30, 2014 1:58 pm

How to set text width in Author mode?

Post by elaine_blath »

I am preparing an xml file for annotation in XML. The annotation will be done in Author mode.
I have prepared a schema and a css style for it. But there is a little problem: the lines in the xml file are VERY long, you need to scroll to the left, so it's very uncomfortable to work with it. As far as I understood, Oxygen does not support width in css for text.
How can I fix this issue? Is there a way to limit the line length inside the Oxygen itself? Otherwise it seems very time consuming to make line breaks in my (quite big) xml file manually...
Radu
Posts: 9444
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to set text width in Author mode?

Post by Radu »

Hi Elaine,

Oxygen by default should wrap all text lines in the Author visual editing mode.
Are the XML elements defined as space-preserve either in the schema or in the CSS?
In such cases, you should use in the CSS pre-wrap as a whitespace value for such space preserve elements:

Code: Select all

element{
white-space:pre-wrap;
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
elaine_blath
Posts: 9
Joined: Thu Oct 30, 2014 1:58 pm

Re: How to set text width in Author mode?

Post by elaine_blath »

Oh, I had my white-space in CSS set to "pre", and not to "pre-wrap". Thank you for the hint, this solved the issue! Though the newlines between paragraphs have dissapeared. I will go google a solution for this...
Radu
Posts: 9444
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to set text width in Author mode?

Post by Radu »

Hi Elaine,

If you still have trouble with the newlines between paras, you can write us directly to support@oxygenxml.com, provide a sample XML + sample CSS, tell us more about how you expect this to look like and we'll try to give you some advice.

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