@@ -20,6 +20,7 @@ public static class JsonToHtmlResultConstants
2020 public const string kLinkInPMailToHtml = "<p style=\" text-align:left;\" ><strong><em><u><sub></sub></u></em></strong><a href=\" mailto:support@contentstack.com\" >LINK</a></p>" ;
2121 public const string kLinkInPMailToTARGEtHtml = "<p style=\" text-align:left;\" ><strong><em><u><sub></sub></u></em></strong><a href=\" mailto:support@contentstack.com\" target=\" _self\" >LINK</a></p>" ;
2222 public const string kEmbedHtml = "<iframe src=\" https://www.youtube.com/watch?v=AOP0yARiW8U\" ></iframe>" ;
23+ public const string stringClassIdResult = "<p><span id=\" i3\" >This</span> is a <span class=\" c1\" id=\" i1\" >text</span> to be <span class=\" c2\" >ignored</span></p>" ;
2324 }
2425
2526 public static class JsonToHtmlConstants
@@ -47,8 +48,8 @@ public static class JsonToHtmlConstants
4748 public const 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\" }" ;
4849 public const 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\" }" ;
4950 public const string kHRJson = "{ \" uid\" :\" 06e34a7 5e4 e549d\" , \" _version\" :1, \" attrs\" :{ }, \" children\" :[{\" uid\" :\" f5a7b57 40a8a5c3 576828276b\" ,\" type\" :\" hr\" ,\" children\" :[{\" text\" :\" \" }],\" attrs\" :{ }}],\" type\" :\" doc\" }" ;
50-
51-
51+ public const string classId = "{ \" uid \" : \" 06e34a7 5e4 e549d \" , \" _version \" :1, \" attrs \" :{ }, \" children \" :[{ \" uid \" : \" f5a7b57 40a8a5c3 576828276b \" , \" type \" : \" doc \" , \" children \" :[{ \" text \" : \" Thorisbest \" , \" classname \" : \" c2 \" , \" id \" : \" i2 \" }], \" attrs \" :{ }}], \" type \" : \" text \" }" ;
52+ public const string stringClassId = "{ \" type \" : \" doc \" , \" attrs \" : {}, \" uid \" : \" 8622288a91dc4c76985d776d2540b395 \" , \" children \" : [ { \" type \" : \" p \" , \" uid \" : \" 396ee25abd0f4296a45eac63809450ef \" , \" attrs \" : {}, \" children \" : [ { \" text \" : \" This \" , \" classname \" : \" \" , \" id \" : \" i3 \" }, { \" text \" : \" is a \" }, { \" text \" : \" text \" , \" classname \" : \" c1 \" , \" id \" : \" i1 \" }, { \" text \" : \" to be \" }, { \" text \" : \" ignored \" , \" classname \" : \" c2 \" , \" id \" : \" \" } ] } ], \" _version \" : 4 }" ;
5253 public const string KAssetNode = "\" embedded_itemsConnection\" : { \" edges\" : [{ \" node\" : { \" system\" : { \" content_type_uid\" : \" sys_assets\" , \" uid\" : \" UID_12\" }, \" created_at\" : \" 2020-08-19T09:13:32.785Z\" , \" updated_at\" : \" 2020-08-19T09:13:32.785Z\" , \" created_by\" : \" Created_at\" , \" updated_by\" : \" Created_at\" , \" content_type\" : \" application/pdf\" , \" file_size\" : \" 13264\" , \" filename\" : \" dummy.pdf\" , \" url\" :\" /v3/assetsUID_12/dummy.pdf\" , \" _version\" : 1, \" title\" : \" dummy.pdf\" } } ]}" ;
5354 public const string KEntryBlocNode = "\" embedded_itemsConnection\" : { \" edges\" : [{ \" node\" : { \" title\" : \" Update this title\" , \" url\" : \" \" , \" locale\" : \" en-us\" , \" system\" : { \" uid\" : \" UID_07\" , \" content_type_uid\" : \" content_block\" }, \" _version\" : 5, \" _in_progress\" : false, \" multi_line\" : \" \" , \" rich_text_editor\" : \" \" } } ]}" ;
5455 public const string KEntryLinkNode = "\" embedded_itemsConnection\" : { \" edges\" : [{ \" node\" : { \" title\" : \" Entry with embedded entry\" , \" rich_text_editor\" : [ \" \" ], \" locale\" : \" en-us\" , \" system\" : { \" uid\" : \" UID_08\" , \" content_type_uid\" : \" embeddedrte\" }, \" _in_progress\" : false } } ]}" ;
0 commit comments