Comments (9)
@K-Kumar-01 thanks for raising the issue.
I think the extra ""
are not put intentionally. They come directly from CiceroMark JSON of a sample text of a particular template. As far as I remember the values in the CiceroMark JSON were stored like this - {name: "\"Party A\""}
.
I might be wrong though. Could you please confirm, @irmerk @K-Kumar-01 ?
from cicero-word-add-in.
That sounds right. Probably something we didn't want to bother with last summer at the time.
from cicero-word-add-in.
I had a similar doubt, when the user edits a variable, it allows them to remove the double-quotes. Was it intentional or we want to preserve the double-quotes as well?
from cicero-word-add-in.
@algomaster99 any thoughts on this? I don't recall why we needed quotation marks.
from cicero-word-add-in.
@algomaster99
The values in JSON mark are as follows
$class: "org.accordproject.ciceromark.Variable"
elementType: "org.accordproject.organization.Organization"
identifiedBy: "identifier"
name: "shipper"
value: ""Party A""
So yeah basically what you are saying is right.
However, in contract-editor (web-components), the values do not contain the ""
wrapped around them. This led me to think that these might be unintentional when it gets converted to CiceroMark JSON.
Maybe you or @irmerk can explain better to me about this
from cicero-word-add-in.
@algomaster99 @irmerk
Should I make a PR for the issue.
from cicero-word-add-in.
@K-Kumar-01 you can go ahead. The contract editor probably strips the ""
out of the variable value so do how its done in there. Also, make sure roundtripping is not broken because of this.
from cicero-word-add-in.
@algomaster99
In contract editor, there is no extra ""
in the values.
So I don't think we can use its implementation for the same.
Though I have found a solution for which I make a PR ASAP.
from cicero-word-add-in.
@algomaster99
I have made a PR for the issue. Let me know if there are any changes required.
from cicero-word-add-in.
Related Issues (20)
- Re-attaching listeners to the clause which is rendered using a custom template HOT 2
- Handle multiple templates with same identifier HOT 7
- "Upload your template" button not working
- Docstrings are missing from the entire project HOT 3
- Unable to sideload add-in on the web version of MS Word
- Testing for the CiceroMark to OOXML transformer.
- Sideload UI HOT 1
- Change default support link HOT 2
- Manifest.xml is not valid HOT 2
- Persistent Custom XML HOT 15
- Integrating Pre- commit hook HOT 4
- Type: Regression [eslint commands] HOT 7
- Adding `CONTRIBUTNG.md` and `DEVELOPERS.md` files HOT 1
- Update the dependencies HOT 3
- Alternate way to restricting editing content in content controls HOT 2
- Integrating Github Actions for linting checks
- Upload your template button not present HOT 2
- Debug Addin: New Method and Documentation HOT 2
- "Details" button functionality ideas HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cicero-word-add-in.