Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get actual ids of Paragraphs in a plugin? #92

Open
anirudhvarma12 opened this issue Dec 24, 2019 · 7 comments
Open

How to get actual ids of Paragraphs in a plugin? #92

anirudhvarma12 opened this issue Dec 24, 2019 · 7 comments
Assignees

Comments

@anirudhvarma12
Copy link

anirudhvarma12 commented Dec 24, 2019

It looks like OnlyOffice replaces the paragraph ids generated by Word to its own ids. Is there any way to get the word id(s) of the paragraphs?

@ShockwaveNN
Copy link
Contributor

@flaminestone take a look please

@flaminestone
Copy link

Hi @anirudhvarma12. There are no public methods for getting paragraph ids at now. I recommendet to use content controls for work with paragraphs/runs.

@anirudhvarma12
Copy link
Author

The problem with using content controls would be that they are visible to the user, we wanted something that is not visible to the user and can be used to track content. Any recommendations for that? Can we have an invisible content control?

@flaminestone
Copy link

No, content controls can not be invisible. I need some examples for understanding) Can you give more details?

@anirudhvarma12
Copy link
Author

We have some internal tools which require us to be able to track paragraph id. If you can give some pointers, I can open an MR also to add this functionality to the sdk.

@KirillovIlya
Copy link
Contributor

KirillovIlya commented Dec 26, 2019

First of all, you can hide the track around the content control.

  1. Content Control Settings
  2. Appearance
  3. Show as "None"

Tell me pls, which paragraph id we are replacing? I mean which subnode or attribute of a <w:p> we are replacing.
In fact, we have our internal id's for paragraphs, but we do not replace anything with them.

@anirudhvarma12
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants