Remove overriding inline styling - fall back to defined styles

When I copy formatted content, including headers and lists and whatnot to an OnlyOffice document, it marks the headers and sees the lists.
But it also copies along all sorts of styling, like font and size (even if they weren’t there in the source).

How can I remove all the overriding styles (font, size, etc) so everything uses the base styles of the elements they are?

If I ‘Clear style’, then everything becomes ‘Normal’ text (same as pasting as plain text).
But I want to retain the headings and all. They should just revert to their base styling for that type.

Hello @petervanwesten

Have you encountered a processor that is capable of this? From ones I’ve seen so far, the default practice is copying either with original, i.e. source formatting, or keeping the text only, which resets styles.

Yes, Libre office does a good job of this.
What I now actually have to do is paste the formatted text in LibeOffice, export to a docx or odt, and open that in OnlyOffice.

I wouldn’t mind the pasting take over the styling, if there was a ‘Clear Styling’ button that would leave the types in tact.

For instance:

Create a document with a Heading 1, Heading 2 and some Normal text.

Select all text and make it red.

Then have a button that would revert everything back to the base styles, so a standard Heading 1, Heading 2 and Normal text.

Can you point to the documentation on that or simply describe how to do it? I was unable to find anything related to “clear style” there.

I mean, if I just paste the content into LibreOffice, it either updates the actual headings definition (and other elements) to what is pasted, or it doesn’t copy along any overriding styles.

But results are not very predictable, and depends very much on source of copy.

But LibreOffice aside, would it not be a very helpful feature?

I believe this is a bad practice having a processor that works unexpectedly.

As a workaround, you can paste the text with the styling, then select every paragraph to use Clear style option from the main toolbar of Home tab (next to Font color) to reset it. If you select whole inserted text, it will reset the styling to normal text, i.e. with no headings and such, but selecting each heading, paragraph, etc., and using Cleat style would allow resetting it to the default style.

All processors that I know using the same model for styles.

Sorry, but that is the whole point of this feature request.

I say:
“When pasting rich text, you now need to clear all styling. This reverts everything to normal text. Then you need to reapply all headers, lists and whatever. This could be made much easier.”

You:
“Workaround: When pasting rich text, you need to clear all styling. This reverts everything to normal text. Then you need to reapply all headers, lists and whatever.”

Well, duh!

So again, My feature request is:
Be able to select all text and only make it remove the extra styling. But keep the connections to whatever base style (Heading 1, List, whatever) there are.

My hope was a reply like:
“Yes, that seems to be a really good idea, and is missing in OnlyOffice and also (in a stable way) in other processors. We could really add value to OnlyOffice by offering this, instead of just doing what others do, but just a little worse”.

We are discussing you query internally, please await the feedback.

PS: This does work in LibreOffice.

To test, simply create a heading and some normal text, like:

ABC

123

Where you make ABC the heading.

Then color that ABC red.

Select all text, and click on the ‘Clear Style’ button, or in LibreOffice it is called: "Clear (Clear Direct Formatting ^M).

In OnlyOffice, all text is reset to ‘Normal’ text.
In LibreOffice, the ‘ABC’ is reset to a clean Heading. The 123 remains clean ‘Normal’ text.

Devs informed me that the current behavior of Clear style button won’t be changed.

Ok, so devs choose to keep OnlyOffice subpar. Clear.

  • So no clearing of styles in a workable way.
  • No support for emoji’s.

Guess I’ll look for a different solution.