Skip to content

Commit e9d9e86

Browse files
authored
Merge pull request #73 from contentstack/next
Fix: Empty string in case td or th node had void:true
2 parents a23057f + 7dc7ac0 commit e9d9e86

File tree

15 files changed

+185
-69
lines changed

15 files changed

+185
-69
lines changed

AUTHORS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Authors
22

3-
- [ishaileshmishra](shailesh.mishra@***REMOVED***)
4-
- [shaileshmishra](mshaileshr@***REMOVED***)
5-
- [admin](dev@***REMOVED***)
3+
- [ishaileshmishra](shailesh.mishra@contentstack.com)
4+
- [shaileshmishra](mshaileshr@contentstack.com)
5+
- [admin](dev@contentstack.com)

Changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
A brief description of what changes project contains
44
## May 28, 2024
55

6+
#### v1.2.11
7+
8+
- Fix: ignore td/th in case of attrs has void:true
9+
10+
## May 14, 2024
11+
612
#### v1.2.10
713

814
-Enhancement: Update Asset url method added for GQL

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you believe you have found a security vulnerability in any Contentstack-owned
88

99
**Please do not report security vulnerabilities through public GitHub issues.**
1010

11-
Send email to [security@***REMOVED***](mailto:security@***REMOVED***).
11+
Send email to [security@contentstack.com](mailto:security@contentstack.com).
1212

1313
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
1414

@@ -24,4 +24,4 @@ Please include the requested information listed below (as much as you can provid
2424

2525
This information will help us triage your report more quickly.
2626

27-
[https://www.***REMOVED***/trust/](https://www.***REMOVED***/trust/)
27+
[https://www.contentstack.com/trust/](https://www.contentstack.com/trust/)

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.contentstack.sdk</groupId>
66
<artifactId>utils</artifactId>
7-
<version>1.2.10</version>
7+
<version>1.2.11</version>
88
<packaging>jar</packaging>
99
<name>Contentstack-utils</name>
1010
<description>Java Utils SDK for Contentstack Content Delivery API, Contentstack is a headless CMS</description>
11-
<url>https://www.***REMOVED***</url>
11+
<url>https://www.contentstack.com</url>
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -35,9 +35,9 @@
3535
<developers>
3636
<developer>
3737
<name>shaileshmishra</name>
38-
<email>shailesh.mishra@***REMOVED***</email>
38+
<email>shailesh.mishra@contentstack.com</email>
3939
<organization>contentstack</organization>
40-
<organizationUrl>https://www.***REMOVED***/</organizationUrl>
40+
<organizationUrl>https://www.contentstack.com/</organizationUrl>
4141
</developer>
4242
</developers>
4343

@@ -73,7 +73,7 @@
7373

7474
<organization>
7575
<name>Contentstack.</name>
76-
<url>http://***REMOVED***</url>
76+
<url>http://contentstack.com</url>
7777
</organization>
7878

7979
<dependencies>

src/main/java/com/contentstack/utils/render/DefaultOption.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
public class DefaultOption implements Option {
1616

17+
1718
/**
1819
* The function `renderOptions` takes in a JSON object and metadata and returns a string based on the
1920
* style type of the metadata.
@@ -153,10 +154,19 @@ public String renderNode(String nodeType, JSONObject nodeObject, NodeCallback ca
153154
return "<tfoot" + strAttrs + ">" + cleanChildren + "</tfoot>";
154155
case "tr":
155156
return "<tr" + strAttrs + ">" + cleanChildren + "</tr>";
156-
case "th":
157-
return "<th" + strAttrs + ">" + cleanChildren + "</th>";
158-
case "td":
159-
return "<td" + strAttrs + ">" + cleanChildren + "</td>";
157+
case "th":{
158+
if (nodeObject.has("attrs") && nodeObject.optJSONObject("attrs").has("void") &&
159+
nodeObject.optJSONObject("attrs").optBoolean("void")) {
160+
return "";
161+
}else{
162+
return "<th" + strAttrs + ">" + cleanChildren + "</th>";}}
163+
case "td":{
164+
if (nodeObject.has("attrs") && nodeObject.optJSONObject("attrs").has("void") &&
165+
nodeObject.optJSONObject("attrs").optBoolean("void")) {
166+
return "";
167+
}else{
168+
return "<td" + strAttrs + ">" + cleanChildren + "</td>";}}
169+
160170
case "blockquote":
161171
return "<blockquote" + strAttrs + ">" + cleanChildren + "</blockquote>";
162172
case "code":

src/test/java/com/contentstack/utils/DefaultOptionTests.java

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
package com.contentstack.utils;
22

33
import com.contentstack.utils.helper.Metadata;
4+
import com.contentstack.utils.interfaces.NodeCallback;
45
import com.contentstack.utils.render.DefaultOption;
6+
7+
58
import org.json.JSONObject;
9+
import org.json.JSONArray;
610
import org.jsoup.nodes.Attributes;
711
import org.junit.Assert;
812
import org.junit.BeforeClass;
913
import org.junit.FixMethodOrder;
1014
import org.junit.Test;
1115
import org.junit.runners.MethodSorters;
1216

17+
import static org.junit.Assert.assertEquals;
18+
1319
import java.io.IOException;
1420
import java.util.logging.Level;
1521
import java.util.logging.Logger;
@@ -82,5 +88,99 @@ public void testEmbeddedDefaultDisplayable() {
8288
String result = defaultOptions.renderOptions(localJsonObj.optJSONObject("_embedded_items"), metadata);
8389
Assert.assertEquals("<img src=\"\" alt=\"\" />", result);
8490
}
91+
@Test
92+
public void testRenderNodeWithVoidTd() {
93+
DefaultOption defaultOptions = new DefaultOption();
94+
JSONObject nodeObject = new JSONObject();
95+
JSONObject attrs = new JSONObject();
96+
attrs.put("void", true);
97+
nodeObject.put("attrs", attrs);
98+
nodeObject.put("children", new JSONArray());
99+
100+
NodeCallback callback = children -> {
101+
// Simple callback implementation for testing purposes
102+
StringBuilder sb = new StringBuilder();
103+
for (int i = 0; i < children.length(); i++) {
104+
sb.append(children.getJSONObject(i).getString("type"));
105+
}
106+
return sb.toString();
107+
};
108+
109+
String result = defaultOptions.renderNode("td", nodeObject, callback);
110+
Assert.assertEquals("", result);
111+
}
112+
@Test
113+
public void testRenderNodeWithVoidTh() {
114+
DefaultOption defaultOptions = new DefaultOption();
115+
JSONObject nodeObject = new JSONObject();
116+
JSONObject attrs = new JSONObject();
117+
attrs.put("void", true);
118+
nodeObject.put("attrs", attrs);
119+
nodeObject.put("children", new JSONArray());
120+
121+
NodeCallback callback = children -> {
122+
// Simple callback implementation for testing purposes
123+
StringBuilder sb = new StringBuilder();
124+
for (int i = 0; i < children.length(); i++) {
125+
sb.append(children.getJSONObject(i).getString("type"));
126+
}
127+
return sb.toString();
128+
};
129+
130+
String result = defaultOptions.renderNode("th", nodeObject, callback);
131+
Assert.assertEquals("", result);
132+
}
133+
134+
@Test
135+
public void testRenderNodeWithoutVoidTd() {
136+
DefaultOption defaultOptions = new DefaultOption();
137+
JSONObject nodeObject = new JSONObject();
138+
JSONObject attrs = new JSONObject();
139+
attrs.put("class", "example");
140+
nodeObject.put("attrs", attrs);
141+
JSONArray children = new JSONArray();
142+
JSONObject child = new JSONObject();
143+
child.put("type", "text");
144+
child.put("content", "example content");
145+
children.put(child);
146+
nodeObject.put("children", children);
147+
148+
NodeCallback callback = childrenArray -> {
149+
StringBuilder sb = new StringBuilder();
150+
for (int i = 0; i < childrenArray.length(); i++) {
151+
sb.append(childrenArray.getJSONObject(i).getString("content"));
152+
}
153+
return sb.toString();
154+
};
155+
156+
String result = defaultOptions.renderNode("td", nodeObject, callback);
157+
Assert.assertEquals("<td class=\"example\">example content</td>", result);
158+
}
159+
160+
@Test
161+
public void testRenderNodeWithoutVoidTh() {
162+
DefaultOption defaultOptions = new DefaultOption();
163+
JSONObject nodeObject = new JSONObject();
164+
JSONObject attrs = new JSONObject();
165+
attrs.put("class", "example");
166+
nodeObject.put("attrs", attrs);
167+
JSONArray children = new JSONArray();
168+
JSONObject child = new JSONObject();
169+
child.put("type", "text");
170+
child.put("content", "example content");
171+
children.put(child);
172+
nodeObject.put("children", children);
173+
174+
NodeCallback callback = childrenArray -> {
175+
StringBuilder sb = new StringBuilder();
176+
for (int i = 0; i < childrenArray.length(); i++) {
177+
sb.append(childrenArray.getJSONObject(i).getString("content"));
178+
}
179+
return sb.toString();
180+
};
181+
182+
String result = defaultOptions.renderNode("th", nodeObject, callback);
183+
Assert.assertEquals("<th class=\"example\">example content</th>", result);
184+
}
85185

86186
}

src/test/java/com/contentstack/utils/RTEResult.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class RTEResult {
1212
public static String kH6Html = "<h6>Nunc porta diam vitae purus semper, ut consequat lorem vehicula.</h6>";
1313
public static String kOrderListHtml = "<ol><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Morbi in quam molestie, fermentum diam vitae, bibendum ipsum.</li><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Pellentesque mattis lacus in quam aliquam congue</li><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Integer feugiat leo dignissim, lobortis enim vitae, mollis lectus.</li><li redactor-attributes=\"{}\" style=\"text-align: justify; \">Sed in ante lacinia, molestie metus eu, fringilla sapien.</li></ol>";
1414
public static String kIUnorderListHtml = "<ul><li>Sed quis metus sed mi hendrerit mollis vel et odio.</li><li>Integer vitae sem dignissim, elementum libero vel, fringilla massa.</li><li>Integer imperdiet arcu sit amet tortor faucibus aliquet.</li><li>Aenean scelerisque velit vitae dui vehicula, at congue massa sagittis.</li></ul>";
15-
public static String kImgHtml = "<img redactor-attributes=\"{\"asset_uid\":\"47f1aa5ae422cd1\"}\" width=\"33.69418132611637\" height=\"auto\" src=\"images.***REMOVED***/v3/assets/UID_13/Donald.jog.png\" />";
15+
public static String kImgHtml = "<img redactor-attributes=\"{\"asset_uid\":\"47f1aa5ae422cd1\"}\" width=\"33.69418132611637\" height=\"auto\" src=\"images.contentstack.com/v3/assets/UID_13/Donald.jog.png\" />";
1616
public static String kTableHtml = "<table><thead><tr><th><p>Header 1</p></th><th><p>Header 2</p></th></tr></thead><tbody><tr><td><p>Body row 1 data 1</p></td><td><p>Body row 1 data 2</p></td></tr><tr><td><p>Body row 2 data 1</p></td><td><p>Body row 2 data 2</p></td></tr></tbody></table>";
1717
public static String kBlockquoteHtml = "<blockquote>Praesent eu ex sed nibh venenatis pretium.</blockquote>";
1818
public static String kCodeHtml = "<code>Code template.</code>";

src/test/java/com/contentstack/utils/RTEString.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ public class RTEString {
1212
public static String kH6Json = "{ \"uid\": \"06e34a71190849d7fcd\", \"_version\": 13, \"attrs\": { }, \"children\": [ { \"type\": \"h6\", \"attrs\": {}, \"uid\": \"c2dfa672242cfb7e2e1\", \"children\": [ { \"text\": \"Nunc porta diam vitae purus semper, ut consequat lorem vehicula.\", } ] } ], \"type\": \"doc\" }";
1313
public static String kOrderListJson = "{ \"uid\":\"06e35 48119084 9d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"2b5b4acbb3cfce02d3e\",\"type\":\"ol\",\"children\":[{\"type\":\"li\",\"attrs\":{\"style\":{\"text-align\":\"justify\"},\"redactor-attributes\":{ }},\"uid\":\"160bbd7430b98bd3d996\",\"children\":[{\"text\":\"Morbi in quam molestie, fermentum diam vitae, bibendum ipsum.\"}]},{ \"type\":\"li\",\"attrs\":{ \"style\":{ \"text-align\":\"justify\"},\"redactor-attributes\":{ } },\"uid\":\"a15f4d749bc2903d\",\"children\":[{ \"text\":\"Pellentesque mattis lacus in quam aliquam congue\"}]},{ \"type\":\"li\",\"attrs\":{ \"style\":{ \"text-align\":\"justify\"},\"redactor-attributes\":{ } },\"uid\":\"e54224bbcb6f9e8f1e43\",\"children\":[{ \"text\":\"Integer feugiat leo dignissim, lobortis enim vitae, mollis lectus.\"}]},{ \"type\":\"li\",\"attrs\":{ \"style\":{ \"text-align\":\"justify\"},\"redactor-attributes\":{ } },\"uid\":\"c0148bab9af758784\",\"children\":[{ \"text\":\"Sed in ante lacinia, molestie metus eu, fringilla sapien.\"}]}],\"id\":\"7f413d448a\",\"attrs\":{ }}],\"type\":\"doc\"}";
1414
public static String kUnorderListJson = "{ \"uid\":\"0e5481190849a\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"a3a2b443ebffc867b\",\"type\":\"ul\",\"children\":[{\"uid\":\"f67354d4eed64451922\",\"type\":\"li\",\"children\":[{\"text\":\"Sed quis metus sed mi hendrerit mollis vel et odio.\"}],\"attrs\":{ }},{ \"uid\":\"5 50cba5 bea92f23e36fd1\",\"type\":\"li\",\"children\":[{ \"text\":\"Integer vitae sem dignissim, elementum libero vel, fringilla massa.\"}],\"attrs\":{ } },{ \"uid\":\"0e5c9b4cd983e8fd543\",\"type\":\"li\",\"children\":[{ \"text\":\"Integer imperdiet arcu sit amet tortor faucibus aliquet.\"}],\"attrs\":{ } },{ \"uid\":\"6d9a43a3816bd83a9a\",\"type\":\"li\",\"children\":[{ \"text\":\"Aenean scelerisque velit vitae dui vehicula, at congue massa sagittis.\"}],\"attrs\":{ } }],\"id\":\"b083fa46ef899420ab19\",\"attrs\":{ }}],\"type\":\"doc\"}";
15-
public static String kImgJson = "{ \"uid\":\"06e34a7a4849d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"f3be74be3b64646e626\",\"type\":\"img\",\"attrs\":{\"url\":\"images.***REMOVED***/v3/assets/UID_13/Donald.jog.png\",\"width\":33.69418132611637,\"height\":\"auto\",\"redactor-attributes\":{\"asset_uid\":\"47f1aa5ae422cd1\"}},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
15+
public static String kImgJson = "{ \"uid\":\"06e34a7a4849d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"f3be74be3b64646e626\",\"type\":\"img\",\"attrs\":{\"url\":\"images.contentstack.com/v3/assets/UID_13/Donald.jog.png\",\"width\":33.69418132611637,\"height\":\"auto\",\"redactor-attributes\":{\"asset_uid\":\"47f1aa5ae422cd1\"}},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
1616
public static String kParagraphJson = "{ \"uid\":\"0d7fd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"type\":\"p\",\"attrs\":{},\"uid\":\"0a1b5676aa510e5a\",\"children\":[{\"text\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed condimentum iaculis magna in vehicula. Vestibulum vitae convallis lacus. Praesent a diam iaculis turpis rhoncus faucibus. Aliquam sed pulvinar sem.\"}]}],\"type\":\"doc\"}";
1717
public static String kBlockquoteJson = "{ \"uid\":\"06084d7fd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"503f9cc97534db55\",\"type\":\"blockquote\",\"id\":\"431f78e567161460\",\"children\":[{\"text\":\"Praesent eu ex sed nibh venenatis pretium.\"}],\"attrs\":{ }}],\"type\":\"doc\"}";
1818
public static String kCodeJson = "{ \"uid\":\"06ea490849d7fc2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"83fba92c91b30002b\",\"type\":\"code\",\"attrs\":{},\"children\":[{\"text\":\"Code template.\"}]}],\"type\":\"doc\"}";
1919
public static String kTableJson = "{ \"uid\": \"06e481190849d7fcd\", \"_version\": 13, \"attrs\": { }, \"children\": [ { \"uid\": \"6dd64343bf634bfadd4\", \"type\": \"table\", \"attrs\": { \"rows\": 4, \"cols\": 2, \"colWidths\": [ 250, 250 ] }, \"children\": [ { \"uid\": \"b9082\", \"type\": \"thead\", \"attrs\": {}, \"children\": [ { \"type\": \"tr\", \"attrs\": {}, \"children\": [ { \"type\": \"th\", \"attrs\": {}, \"children\": [ { \"type\": \"p\", \"attrs\": {}, \"children\": [ { \"text\": \"Header 1\" } ], \"uid\": \"daa3ef\" } ], \"uid\": \"4b3124414a3\" }, { \"type\": \"th\", \"attrs\": { }, \"children\": [ { \"type\": \"p\", \"attrs\": { }, \"children\": [ { \"text\": \"Header 2\" } ], \"uid\": \"eae83c5797d\" } ], \"uid\": \"bca9b6f037a04fb485\" } ], \"uid\": \"b91ae7a48ef2e9da1\" } ] }, { \"type\": \"tbody\", \"attrs\": { }, \"children\": [ { \"type\": \"tr\", \"attrs\": { }, \"children\": [ { \"type\": \"td\", \"attrs\": { }, \"children\": [ { \"type\": \"p\", \"attrs\": { }, \"children\": [ { \"text\": \"Body row 1 data 1\" } ], \"uid\": \"ec674ccc5ce70b7cab\" } ], \"uid\": \"2a70bdeeb99a\" }, { \"type\": \"td\", \"attrs\": { }, \"children\": [ { \"type\": \"p\", \"attrs\": { }, \"children\": [ { \"text\": \"Body row 1 data 2\" } ], \"uid\": \"769a 3f9db34 ce8ec 10486d50\" } ], \"uid\": \"d6407 34a5c6 1ab1e5f7d1\" } ], \"uid\": \"77f6 b951c68 7f9eb397c5\" }, { \"type\": \"tr\", \"attrs\": { }, \"children\": [ { \"type\": \"td\", \"attrs\": { }, \"children\": [ { \"type\": \"p\", \"attrs\": { }, \"children\": [ { \"text\": \"Body row 2 data 1\" } ], \"uid\": \"a6bf 11bb48 630e87d721c0\" } ], \"uid\": \"3da39838b0feaf\" }, { \"type\": \"td\", \"attrs\": { }, \"children\": [ { \"type\": \"p\", \"attrs\": { }, \"children\": [ { \"text\": \"Body row 2 data 2\" } ], \"uid\": \"3b7d12 1f694202 49029e86313\" } ], \"uid\": \"95b38b04abcbc25e94f\" } ], \"uid\": \"b 227fea 8d247013 4f1e1e8\" } ], \"uid\": \"fd5ab86aa642798451b\" } ] }, ], \"type\": \"doc\" }";
2020
public static String kLinkInPJson = "{ \"uid\":\"06e34a7190849d7f2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"type\":\"p\",\"attrs\":{\"style\":{\"text-align\":\"left\"},\"redactor-attributes\":{ }},\"uid\":\"d88dcdf4590dff2d\",\"children\":[{\"text\":\"\",\"bold\":true,\"italic\":true,\"underline\":true,\"subscript\":true},{ \"uid\":\"0d06598201aa8b47\",\"type\":\"a\",\"attrs\":{ \"url\":\"LINK.com\",\"target\":\"_self\"},\"children\":[{ \"text\":\"LINK\"}]},{ \"text\":\"\"}]}],\"type\":\"doc\"}";
2121
public static String kEmbedJson = "{ \"uid\":\"06e34a7190849d7f2acd\", \"_version\":13, \"attrs\":{ }, \"children\":[{\"uid\":\"251017315905c35d42c9\",\"type\":\"embed\",\"attrs\":{\"url\":\"https://www.youtube.com/watch?v=AOP0yARiW8U\"},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
22-
public static String kAssetReferenceJson = "{\"uid\":\"06e34a7 5e4 e549d \", \"_version\":1, \"attrs\":{}, \"children\":[{ \"uid\": \"4f7e33 3390a955 de10c1 c836\", \"type\":\"reference\",\"attrs\":{\"display-type\":\"display\",\"asset-uid\":\"UID_12\",\"content-type-uid\":\"sys_assets\",\"asset-link\":\"https://images.***REMOVED***/v3/assets/UID_14/11.jpg\",\"asset-name\":\"11.jpg\",\"asset-type\":\"image/jpeg\",\"type\":\"asset\",\"class-name\":\"embedded-asset\",\"width\":25.16914749661705,\"className\":\"dsd\",\"id\":\"sdf\"},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
22+
public static String kAssetReferenceJson = "{\"uid\":\"06e34a7 5e4 e549d \", \"_version\":1, \"attrs\":{}, \"children\":[{ \"uid\": \"4f7e33 3390a955 de10c1 c836\", \"type\":\"reference\",\"attrs\":{\"display-type\":\"display\",\"asset-uid\":\"UID_12\",\"content-type-uid\":\"sys_assets\",\"asset-link\":\"https://images.contentstack.com/v3/assets/UID_14/11.jpg\",\"asset-name\":\"11.jpg\",\"asset-type\":\"image/jpeg\",\"type\":\"asset\",\"class-name\":\"embedded-asset\",\"width\":25.16914749661705,\"className\":\"dsd\",\"id\":\"sdf\"},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
2323
public static String kEntryReferenceBlockJson = "{ \"uid\":\"06e34a7 5e4 e549d \", \"_version\":1, \"attrs\":{ }, \"children\":[{\"uid\":\"70f9b 325075d43 128c0d0 aa3eb7f291f\",\"type\":\"reference\",\"attrs\":{\"display-type\":\"block\",\"entry-uid\":\"UID_07\",\"content-type-uid\":\"content_block\",\"locale\":\"en-us\",\"type\":\"entry\",\"class-name\":\"embedded-entry\"},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";
2424
public static String kEntryReferenceLinkJson = "{ \"uid\":\"06e34a7 5e4 e549d\", \"_version\":1, \"attrs\":{ }, \"children\":[{\"uid\":\"7626ea98e0e95d602210\",\"type\":\"reference\",\"attrs\":{\"target\":\"_self\",\"href\":\"/copy-of-entry-final-02\",\"display-type\":\"link\",\"entry-uid\":\"UID_08\",\"content-type-uid\":\"embeddedrte\",\"locale\":\"en-us\",\"type\":\"entry\",\"class-name\":\"embedded-entry\"},\"children\":[{\"text\":\"/copy-of-entry-final-02\"}]}],\"type\":\"doc\"}";
2525
public static String kEntryReferenceInlineJson = "{ \"uid\":\"06e34a7 5e4 e549d\", \"_version\":1, \"attrs\":{ }, \"children\":[{\"uid\":\"506 4878f3f46 s21f0cbc aff\",\"type\":\"reference\",\"attrs\":{\"display-type\":\"inline\",\"entry-uid\":\"UID_09\",\"content-type-uid\":\"embeddedrte\",\"locale\":\"en-us\",\"type\":\"entry\",\"class-name\":\"embedded-entry\"},\"children\":[{\"text\":\"\"}]}],\"type\":\"doc\"}";

0 commit comments

Comments
 (0)