Hi,
1. Related to your first question, if I understand correctly, when you split a paragraph in Author mode, you want oXygen to preserve all the whitespaces of that paragraph as they are in text mode.
In Author mode, when you split an existing paragraph or you make changes inside one, Oxygen formats the element and its contents, as seen in Text mode.
The line breaks are added to keep the length of a line to a reasonable size. There is a "Line width" option in Options > Preferences, Editor > Format, under the "Format and Indent" section, which has a default set value of "100".
Even after you split a paragraph, if one line's width is longer than the value mentioned above, then your paragraph's lines will break and appear as new ones when in text mode.
The solutions to prevent that to happen, are as follow:
- you could add the <p> element in the "preserve space" list in Options > Preferences > Editor > Format > XML to preserve space on ALL the <p> elements in your document
or
- if you have only a few paragraphs for which you need to preserve the lines of text, you could use the xml:space="preserve" attribute only for the respective <p> elements.
2. Regarding your second question, oXygen allows you to customize the actions and icons from the toolbar for a specific document type, by reaching the Options/Preferences/Document Type Association section and editing the desired document type.
In your case, you need to go to Options/Preferences/Document Type Association, scroll the list to the XHTML document type and click on the "Edit" button below. In the Document type window, you should navigate to the "Author" tab and then choose the "Actions" tab in the vertical list on the left side.
Now, using the editing buttons from the bottom of the window, you should be able to create, edit, duplicate and remove actions. To be easier to create new actions or edit the existing ones, please take a look at our pre-configured actions. Also, it could be useful to cast a glance over the Actions, Menus and Toolbars Configuration in Document Type Associations section from the user manual, available at:
http://www.oxygenxml.com/doc/ug-editor/ ... olbar.htmlIf I may ask, why do you want to preserve whitespaces(line breaks) in XHTML paragraphs(they don't show in the end result)? Have you formatted them in a certain way and you want to keep that way?
Regards,
Costin