ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.74k stars 1.08k forks source link

Share text block styled between different doc #1949

Open stepjacky opened 1 year ago

stepjacky commented 1 year ago

This issue is unique.

Your idea.

Usually need to share styled text block between different doc,can onlyoffice saved my styled text block globally and later to used in another doc,or supporting Api invoktion to saving the selection of styled text block and used by plugin to inserting it to some another doc.

ShockwaveNN commented 1 year ago

Hi, is any other online editor allow to do so?

Because I don't think it can be properly done in our architecture, since we do not save any data to DMS or our Database except file data

Maybe you need to replace a new empty document to do so, like a workaround

stepjacky commented 1 year ago

In my opinion, it like the template fragments for reusing. other online editor editing and saving data is only restricted in frontend browser.but onlyoffice has ability exchanging data with server just in time.maybe should be stronger than others. another,if it is difficult to doing this function in editor. can suppling some builder Api, for example Api.getStyledSelection to help developing plugin doing .

ShockwaveNN commented 1 year ago

It maybe be a plugin, but I think it's very rare user case and I'm not sure if we ever implement it

I'll leave this issue opened to gather feedback

HectorB-2020 commented 1 year ago

Isn't it already there in the editor? I can copy text from let's say a web site and paste it into my document preserving almost identical formatting.

Let me provide an example. Open https://www.lipsum.com/, copy a few paragraphs from there. Header have been formatted as headers, bold is still bold.

image