Closed Aniruddha-Shriwant closed 2 years ago
@Aniruddha-Shriwant Forgot to suggest one more thing. We can also make these changes for the insertVariable
method in utils/CiceroMarkToOOXML
.
@Aniruddha-Shriwant Forgot to suggest one more thing. We can also make these changes for the
insertVariable
method inutils/CiceroMarkToOOXML
.
@algomaster99 I'm not sure how to integrate these similar changes in utils/CiceroMarkToOOXML.js
for insertVariable
but I will give it a try :)
I apologize for re-requesting the review 😄 I just clicked it by mistake :)
@Aniruddha-Shriwant are you still working on this?
@Aniruddha-Shriwant are you still working on this?
@algomaster99 I apologize for the delay I was getting some errors in debugging also I was a little confused about the implementation part
No problem. I was just taking an update :)
No problem. I was just taking an update :)
@algomaster99 I will work on this soon and maybe I would need your little help on this :)
@algomaster99, I had spent some time on this but I was not able to add the cannotEdit
API to utils/CiceroMarkToOOXML.js
for insertVariable
as I was getting some problems in getting all the variables present in the document in the Range
class format because without it I won't be able to add contentControls on them, also the current way of adding contentControl is working fine, maybe we can do this later in another PR.
What are your thoughts on this?
Signed-off-by: Aniruddha Shriwant aniruddhashriwant@gmail.com
Closes #55
Changes
insertOoxml
returns aWord.Range
https://github.com/accordproject/cicero-word-add-in/blob/27de6691e32d69bfc6ad1cda24145efbbd2341cc/src/components/TemplateLibrary/index.js#L140 So using Word.Range's method calledinsertContentControl()
an alternate way to adding content controls is addedcannotEdit
API is used for that purposeScreenshots or Video
As you can see the content controls are added successfully
Author Checklist
--signoff
option of git commit.master
fromfork:branchname