ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

How to replace paragraphs? #90

Closed szyuanyang closed 4 years ago

szyuanyang commented 4 years ago

hi~~

I have a section of JSON data. I need to replace a section of the word document. How should I operate it? Thank you.

example: date=[ {"company":"abc","title":"bbbbbbbbbb","content":"eeeeeeeeeeeeeeeeeeeee"}, {"company":"abc","title":"bbbbbbbbbb","content":"eeeeeeeeeeeeeeeeeeeee111"}, {"company":"abc","title":"bbbbbbbbbb","content":"eeeeeeeeeeeeeeeeeeeee222"}, {"company":"abc","title":"bbbbbbbbbb","content":"eeeeeeeeeeeeeeeeeeeee333"} ]

replace word paragraph: rr

flaminestone commented 4 years ago

Hi. I don't understand what part of data you want to replace? Do you need to increase (or change it in any other way) value of content key each time it is repeated?

ShockwaveNN commented 4 years ago

This issue was closed due to no response.