Page 1 of 1

How to set text width in Author mode?

Posted: Fri Dec 05, 2014 5:28 pm
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...

Re: How to set text width in Author mode?

Posted: Fri Dec 05, 2014 5:45 pm
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

Re: How to set text width in Author mode?

Posted: Fri Dec 05, 2014 5:52 pm
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...

Re: How to set text width in Author mode?

Posted: Mon Dec 08, 2014 10:04 am
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