We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Editing certain parts of a document using Java

I have more Doubts. Is there some way that for example in the Editor we have a *.doc or *docx document that have the possibility to only let edit certain parts of it an the rest of the content could be block?
Full thread is here.


This Topic is created by Atir_Tahir using Email to Topic tool.

@noemd

GroupDocs.Editor for Java allows document editing. You can download the demo project here.

I am afraid but there is no such a built-in feature. However, we’ve logged this scenario here on GitHub. You’ll be notified in case of any update/workaround.

Thanks a lot Atir for the answer

1 Like

@noemd

You’re welcome.

@noemd

When you use GroupDocs.Editor for editing documents, you actually convert an input DOC/DOCX document to a set of HTML/CSS markups and resources, which are editable in most of usual HTML-editors (like TinyMCE, CKeditor, or Summernote it could be any WYSIWYG HTML-editor). GroupDocs.Editor for Java is a server-side API, it obtains a document from input and generates an HTML markup from it; this markup then is sent to the HTML-editor on a client-side, is edited there by the end-user, and then is passed back to the server-side, where GroupDocs.Editor generates an output document from it. From this you can see, that it’s a server-sided API, that doesn’t involve in front-end editor at all.

On the other hand, your intention to restrict the some parts of a document from editing implies involving especially a client-side editor, into which the generated markup is loaded. HTML markup in this case is treated as data, pure content, which cannot restrict itself from editing; it should be restricted by the software, which is processing it - HTML-editor in this case.

GroupDocs.Editor has an ability to protect documents from editing, but this protection is applied to the output document, which is generated from edited markup, which is sent back from the client-side editor to the server side (see more details here).

So, answering to your question: its up to you to support an ability to allow editing a certain part of a document and restrict other parts, because this feature should be implemented in a client-side browser-based WYSIWYG HTML-editor, but not in the document content.

Thanks a lot Atir for the response

1 Like

@noemd

You are welcome.