How to lock certain keywords or text by regex expression in a document?

hi @nitesh :handshake:

Possibly, you are referring to the capability of “Allow changes to parts of a protected document.”

https://forum.onlyoffice.com/t/make-portion-of-document-read-only/4523

https://forum.onlyoffice.com/t/how-do-i-use-sdkjs-dynamically-to-set-the-document-read-only/4480/13