contentstack_utils 0.1.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ module ContentstackUtils
2
+ VERSION = "0.1.0-beta.1"
3
+ end
@@ -0,0 +1,55 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe ContentstackUtils::Model::Metadata do
4
+ describe ' Metadata test' do
5
+ it 'Blank attributes' do
6
+ characters = getElement('<h1>TEST</h1>', "//h1")
7
+ characters.each do |n|
8
+ metadata = ContentstackUtils::Model::Metadata.new(n)
9
+ expect(metadata.item_type).to eq nil
10
+ expect(metadata.style_type).to eq nil
11
+ expect(metadata.item_uid).to eq nil
12
+ expect(metadata.content_type_uid).to eq nil
13
+ expect(metadata.text).to eq 'TEST'
14
+ end
15
+ end
16
+
17
+ it 'Wrong attributes' do
18
+ characters = getElement('<h1 type="" sys-style-type="" data-sys-entry-uid="" data-sys-content-type-uid="">TEST</h1>', "//h1")
19
+ characters.each do |n|
20
+ metadata = ContentstackUtils::Model::Metadata.new(n)
21
+ expect(metadata.item_type).to eq ""
22
+ expect(metadata.style_type).to eq ""
23
+ expect(metadata.item_uid).to eq ""
24
+ expect(metadata.content_type_uid).to eq ""
25
+ expect(metadata.text).to eq 'TEST'
26
+ end
27
+ end
28
+
29
+ it 'Attributes' do
30
+ characters = getElement('<h1 type="asset" sys-style-type="inline" data-sys-entry-uid="uid" data-sys-content-type-uid="contentType">
31
+ TEST</h1>', "//h1")
32
+ characters.each do |n|
33
+ metadata = ContentstackUtils::Model::Metadata.new(n)
34
+ expect(metadata.item_type).to eq "asset"
35
+ expect(metadata.style_type).to eq "inline"
36
+ expect(metadata.item_uid).to eq "uid"
37
+ expect(metadata.content_type_uid).to eq "contentType"
38
+ expect(metadata.text).to eq '
39
+ TEST'
40
+ end
41
+ end
42
+
43
+ it 'Asset Uid Attributes' do
44
+ characters = getElement('<h1 type="asset" sys-style-type="inline" data-sys-asset-uid="assetuid">TEST</h1>', "//h1")
45
+ characters.each do |n|
46
+ metadata = ContentstackUtils::Model::Metadata.new(n)
47
+ expect(metadata.item_type).to eq "asset"
48
+ expect(metadata.style_type).to eq "inline"
49
+ expect(metadata.item_uid).to eq "assetuid"
50
+ expect(metadata.content_type_uid).to eq nil
51
+ expect(metadata.text).to eq 'TEST'
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,86 @@
1
+ require 'spec_helper'
2
+
3
+ def getMetadata(itemType=nil, styleType=nil, linkText=nil)
4
+ html = "<test type='#{itemType || 'entry'}' sys-style-type='#{styleType || 'block'}'>#{linkText || ''}</test>";
5
+ element = getElement(html, '//test')[0]
6
+ ContentstackUtils::Model::Metadata.new(element)
7
+ end
8
+ RSpec.describe ContentstackUtils::Model::Options do
9
+ subject {described_class.new({})}
10
+ linkText = "Text To set Link"
11
+ describe 'Custom Raise Render' do
12
+ it 'Custom render without render implementation should fail' do
13
+ expect{ ContentstackUtilsTest::CustomRaiseOption.new.render_option(ENTRY_CONTENT_BLANK, getMetadata()) }.to raise_error(NotImplementedError, "Implement this method in a child class")
14
+ end
15
+ end
16
+
17
+ describe 'Default Option' do
18
+ it 'Embedded Content Type Entry' do
19
+ expect(subject.render_option(ENTRY_CONTENT_BLANK, getMetadata())).
20
+ to eq "<div><p>uid</p><p>Content type: <span>content_type_uid</span></p></div>"
21
+ expect(subject.render_option(ENTRY_CONTENT_BLANK, getMetadata('entry', 'inline'))).
22
+ to eq "<span>uid</span>"
23
+ expect(subject.render_option(ENTRY_CONTENT_BLANK, getMetadata('entry', 'link'))).
24
+ to eq "<a href='uid'>uid</a>"
25
+ end
26
+
27
+ it 'Embedded Entry' do
28
+ expect(subject.render_option(ENTRY_CONTENT_TITLE, getMetadata())).
29
+ to eq "<div><p>title</p><p>Content type: <span>content_type_uid</span></p></div>"
30
+ expect(subject.render_option(ENTRY_CONTENT_TITLE, getMetadata('entry', 'inline'))).
31
+ to eq "<span>title</span>"
32
+ expect(subject.render_option(ENTRY_CONTENT_TITLE, getMetadata('entry', 'link'))).
33
+ to eq "<a href='title'>title</a>"
34
+ end
35
+
36
+ it 'Embedded Entry URL' do
37
+ expect(subject.render_option(ENTRY_CONTENT_TITLE_URL, getMetadata())).
38
+ to eq "<div><p>title</p><p>Content type: <span>content_type_uid</span></p></div>"
39
+ expect(subject.render_option(ENTRY_CONTENT_TITLE_URL, getMetadata('entry', 'inline'))).
40
+ to eq "<span>title</span>"
41
+ expect(subject.render_option(ENTRY_CONTENT_TITLE_URL, getMetadata('entry', 'link'))).
42
+ to eq "<a href='url'>title</a>"
43
+ end
44
+
45
+ it 'Embedded Asset' do
46
+ expect(subject.render_option(ASSET_CONTENT_URL, getMetadata('asset', 'display'))).
47
+ to eq "<img src='url' alt='title' />"
48
+ expect(subject.render_option(ASSET_CONTENT_URL, getMetadata('entry', 'download'))).
49
+ to eq "<a href='url'>title</a>"
50
+ end
51
+
52
+ it 'Embedded Content Type Entry with text' do
53
+ expect(subject.render_option(ENTRY_CONTENT_BLANK, getMetadata('entry', 'block', linkText))).
54
+ to eq "<div><p>uid</p><p>Content type: <span>content_type_uid</span></p></div>"
55
+ expect(subject.render_option(ENTRY_CONTENT_BLANK, getMetadata('entry', 'inline', linkText))).
56
+ to eq "<span>uid</span>"
57
+ expect(subject.render_option(ENTRY_CONTENT_BLANK, getMetadata('entry', 'link', linkText))).
58
+ to eq "<a href='uid'>#{linkText}</a>"
59
+ end
60
+
61
+ it 'Embedded Entry with text' do
62
+ expect(subject.render_option(ENTRY_CONTENT_TITLE, getMetadata('entry', 'block', linkText))).
63
+ to eq "<div><p>title</p><p>Content type: <span>content_type_uid</span></p></div>"
64
+ expect(subject.render_option(ENTRY_CONTENT_TITLE, getMetadata('entry', 'inline', linkText))).
65
+ to eq "<span>title</span>"
66
+ expect(subject.render_option(ENTRY_CONTENT_TITLE, getMetadata('entry', 'link', linkText))).
67
+ to eq "<a href='title'>#{linkText}</a>"
68
+ end
69
+
70
+ it 'Embedded Entry URL with text' do
71
+ expect(subject.render_option(ENTRY_CONTENT_TITLE_URL, getMetadata('entry', 'block', linkText))).
72
+ to eq "<div><p>title</p><p>Content type: <span>content_type_uid</span></p></div>"
73
+ expect(subject.render_option(ENTRY_CONTENT_TITLE_URL, getMetadata('entry', 'inline', linkText))).
74
+ to eq "<span>title</span>"
75
+ expect(subject.render_option(ENTRY_CONTENT_TITLE_URL, getMetadata('entry', 'link', linkText))).
76
+ to eq "<a href='url'>#{linkText}</a>"
77
+ end
78
+
79
+ it 'Embedded Asset with text' do
80
+ expect(subject.render_option(ASSET_CONTENT_URL, getMetadata('asset', 'display', linkText))).
81
+ to eq "<img src='url' alt='title' />"
82
+ expect(subject.render_option(ASSET_CONTENT_URL, getMetadata('entry', 'download', linkText))).
83
+ to eq "<a href='url'>#{linkText}</a>"
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,65 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe ContentstackUtils do
4
+ describe '#renderContent' do
5
+ it 'Render function with blank content and options test' do
6
+ expect(makeRenderFunction(nil)).to eq nil
7
+ expect(makeRenderFunction('')).to eq ''
8
+ expect(makeRenderFunction([''])).to eq ['']
9
+ end
10
+ it 'Render function with non html content' do
11
+ expect(makeRenderFunction(NO_HTML)).to eq NO_HTML
12
+ expect(makeRenderFunction([NO_HTML])).to eq [NO_HTML]
13
+ end
14
+ it 'Render function with html content without Embedded object' do
15
+ expect(makeRenderFunction(SIMPLE_HTML)).to eq SIMPLE_HTML
16
+ expect(makeRenderFunction([SIMPLE_HTML])).to eq [SIMPLE_HTML]
17
+ end
18
+ it 'Render function with non html content and blanks' do
19
+ expect(makeRenderFunction([NO_HTML, ''])).to eq [NO_HTML, '']
20
+ expect(makeRenderFunction([SIMPLE_HTML, NO_HTML])).to eq [SIMPLE_HTML, NO_HTML]
21
+ end
22
+ it 'Render function with non html content and blanks' do
23
+ expect(makeRenderFunction(ENTRY_BLOCK)).to eq ''
24
+ expect(makeRenderFunction(ENTRY_INLINE)).to eq ''
25
+ expect(makeRenderFunction(ENTRY_LINK)).to eq ''
26
+ end
27
+ it 'Render Function with Embedded Asset without Options test' do
28
+ expect(makeRenderFunction(ASSET_DISPLAY)).to eq ''
29
+ expect(makeRenderFunction(ASSET_DOWNLOAD)).to eq ''
30
+ end
31
+ it 'Render Function with Embedded Entry with Options' do
32
+ expect(makeRenderFunction(ENTRY_BLOCK, EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION)).to eq ''
33
+ expect(makeRenderFunction(ENTRY_INLINE, EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION)).to eq ''
34
+ expect(makeRenderFunction(ENTRY_LINK, EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION)).to eq ''
35
+ end
36
+ it 'Render Function with Embedded Entry with no items Options' do
37
+ expect(makeRenderFunction(ENTRY_BLOCK, EMBEDDED_ASSET_WITH_NO_ASSET_OBJECT)).to eq ''
38
+ expect(makeRenderFunction(ENTRY_INLINE, EMBEDDED_ASSET_WITH_NO_ASSET_OBJECT)).to eq ''
39
+ expect(makeRenderFunction(ENTRY_LINK, EMBEDDED_ASSET_WITH_NO_ASSET_OBJECT)).to eq ''
40
+ end
41
+ it 'Render Function with Embedded Asset with Options test' do
42
+ expect(makeRenderFunction(ASSET_DISPLAY, EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION)).to eq ''
43
+ expect(makeRenderFunction(ASSET_DOWNLOAD, EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION)).to eq ''
44
+ expect(makeRenderFunction(ASSET_DISPLAY, EMBEDDED_ASSET_WITH_NO_ASSET_OBJECT)).to eq ''
45
+ expect(makeRenderFunction(ASSET_DOWNLOAD, EMBEDDED_ASSET_WITH_NO_ASSET_OBJECT)).to eq ''
46
+ end
47
+ it 'Render Function string of array with Embedded Entry with Options' do
48
+ expect(makeRenderFunction([ENTRY_BLOCK])).to eq ['']
49
+ expect(makeRenderFunction([ENTRY_BLOCK, ENTRY_INLINE])).to eq ['', '']
50
+ end
51
+ it 'Render Function to render Embbedded Asset test' do
52
+ expect(makeRenderFunction(ENTRY_EMBEDDED_ASSET['rich_text_editor'], EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION)).to eq ENTRY_ASSET_RICH_TEXT
53
+ end
54
+ it 'Render Function to render Embbedded Asset with render option test' do
55
+ expect(makeRenderFunction(ENTRY_EMBEDDED_ASSET['rich_text_editor'], EMBEDDED_ASSET_WITH_CUSTOM_RENDER_OPTION)).to eq ENTRY_ASSET_RICH_TEXT_RENDER_OPTION
56
+ end
57
+ it 'Render Function to render Embedded Entries with out render option test' do
58
+ expect(makeRenderFunction(ENTRY_EMBEDDED_ENTRIES['rich_text_editor'], EMBEDDED_ENTRY_WITH_DEFAULT_RENDER_OPTION)).to eq ENTRY_MULTIPLE_RICH_TEXT
59
+ end
60
+ end
61
+
62
+ def makeRenderFunction(content, option = ContentstackUtils::Model::Options.new(ENTRY_EMBEDDED_ASSET))
63
+ ContentstackUtils.render_content(content, option)
64
+ end
65
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ EMBEDDED_ASSET_WITH_DEFAULT_RENDER_OPTION = ContentstackUtils::Model::Options.new(ENTRY_EMBEDDED_ASSET)
4
+
5
+ EMBEDDED_ASSET_WITH_NO_ASSET_OBJECT = ContentstackUtils::Model::Options.new(ENTRY_ASSET_EMBED_BLANK)
6
+
7
+ EMBEDDED_ENTRY_WITH_DEFAULT_RENDER_OPTION = ContentstackUtils::Model::Options.new(ENTRY_EMBEDDED_ENTRIES)
8
+
9
+ EMBEDDED_OBJECT_WITH_DEFAULT_RENDER_OPTION = ContentstackUtils::Model::Options.new(ENTRY_EMBEDDED_OBJECTS)
10
+
11
+
12
+ EMBEDDED_ASSET_WITH_CUSTOM_RENDER_OPTION = ContentstackUtilsTest::CustomLOption.new(ENTRY_EMBEDDED_ASSET)
13
+
14
+ EMBEDDED_ENTRY_WITH_CUSTOM_RENDER_OPTION = ContentstackUtilsTest::CustomLOption.new(ENTRY_EMBEDDED_ENTRIES)
15
+
16
+ EMBEDDED_OBJECT_WITH_CUSTOM_RENDER_OPTION = ContentstackUtilsTest::CustomLOption.new(ENTRY_EMBEDDED_OBJECTS)
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+ module ContentstackUtilsTest
3
+ class CustomLOption < ContentstackUtils::Model::Options
4
+ def render_option(embeddedObject, metadata)
5
+ case metadata.style_type
6
+ when 'block'
7
+ if metadataArray.content_type_uid === 'content_block'
8
+ return "<div><div>#{embeddedObject.title}</div></div>"
9
+ end
10
+ when 'inline'
11
+ if metadataArray.content_type_uid === 'embeddedrte'
12
+ return "<div><div>#{embeddedObject.uid}</div></div>"
13
+ end
14
+ when 'display'
15
+ return "<img src=\"#{embeddedObject["url"]}\" alt=\"Alternet Text\" />"
16
+ end
17
+ super(embeddedObject, metadata)
18
+ end
19
+ end
20
+
21
+ class CustomRaiseOption< ContentstackUtils::Interface::Rendarable
22
+
23
+ end
24
+ end
@@ -0,0 +1,9 @@
1
+ require 'simplecov'
2
+ SimpleCov.start unless RUBY_PLATFORM == 'java'
3
+ SimpleCov.add_filter ["spec/", "lib/contentstack_utils/support"]
4
+ require 'nokogiri'
5
+ require 'rspec'
6
+ require 'contentstack_utils'
7
+
8
+ Dir[File.dirname(__FILE__) + '/support/**/*.rb'].each { |f| require f }
9
+ Dir[File.dirname(__FILE__) + '/mock/**/*.rb'].each { |f| require f }
@@ -0,0 +1,617 @@
1
+ NO_HTML = 'non html string'
2
+ SIMPLE_HTML = '<h1>Hello</h1> World'
3
+
4
+ ENTRY_BLOCK = '<figure class="embedded-entry block-entry" data-redactor-type="embed" type="entry" data-sys-entry-uid="blt55f6d8cbd7e03a1f" data-sys-entry-locale="en-us" data-sys-content-type-uid="article" sys-style-type="block">{{title}}</figure>'
5
+ ENTRY_INLINE = '<figure class="embedded-entry inline-entry" data-redactor-type="embed" type="entry" data-sys-entry-uid="blt55f6d8cbd7e03a1f" data-sys-entry-locale="en-us" data-sys-content-type-uid="article" style="display:inline;" sys-style-type="inline">{{title}}
6
+ </figure>'
7
+ ENTRY_LINK ='<figure class="embedded-entry link-entry" type="entry" data-sys-entry-locale="en-us" data-sys-entry-uid="blt55f6d8cbd7e03a1f" href="/this-is-unique-title" data-sys-content-type-uid="article" style="display:inline;" sys-style-type="link">{{title}}
8
+ </figure>'
9
+
10
+ ASSET_DISPLAY = '<figure class="embedded-asset" alt="{{object.title}}" data-redactor-type="embed" data-sys-asset-filelink="{{url}}" data-sys-asset-filename="Cuvier-67_Autruche_d_Afrique.jpg" data-sys-asset-contenttype="image/png" type="asset" data-sys-asset-uid="blt55f6d8cbd7e03a1f" style="display:inline;" sys-style-type="display">
11
+ </figure>'
12
+ ASSET_DOWNLOAD = '<figure class="embedded-asset" data-redactor-type="embed" data-sys-asset-filelink="{{url}}" data-sys-asset-uid="blt120a5a04d91c9466" data-sys-asset-filename="iphone-mockup.png" data-sys-asset-contenttype="image/png" data-sys-asset-alt="iphone-mockup.png" data-sys-asset-caption="Caption" data-sys-asset-link="{{link}}" data-sys-asset-position="center" data-sys-asset-isnewtab="true" type="asset" sys-style-type="download"></figure>'
13
+
14
+ ENTRY_CONTENT_BLANK = {
15
+ "uid"=> "uid",
16
+ "_content_type_uid"=> "content_type_uid",
17
+ }
18
+
19
+ ENTRY_CONTENT_URL = {
20
+ "uid"=> "uid",
21
+ "url"=> "url",
22
+ "_content_type_uid"=> "content_type_uid"
23
+ }
24
+
25
+ ASSET_CONTENT_URL = {
26
+ "uid"=> "uid",
27
+ "url"=> "url",
28
+ "title"=> "title",
29
+ "_content_type_uid"=> "content_type_uid"
30
+ }
31
+
32
+ ENTRY_CONTENT_TITLE = {
33
+ "uid"=> "uid",
34
+ "title"=> "title",
35
+ "_content_type_uid"=> "content_type_uid"
36
+ }
37
+
38
+ ENTRY_CONTENT_TITLE_URL = {
39
+ "uid"=> "uid",
40
+ "url"=> "url",
41
+ "title"=> "title",
42
+ "_content_type_uid"=> "content_type_uid"
43
+ }
44
+
45
+ ENTRY_EMBEDDED_ASSET = {
46
+ "title"=> 'one',
47
+ "url"=> '/one',
48
+ "rich_text_editor"=> '<p></p><figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.asset/v3/assets/dummy.pdf" data-sys-asset-uid="blt44asset" data-sys-asset-filename="dummy.pdf" data-sys-asset-contenttype="application/pdf" type="asset" sys-style-type="display"></figure>\n<img data-image="236uaymkloww" src="https://contentstack.image/v3/assets/blt333/c/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt222" alt="html5.png">\n<p></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blt333/blt9844/5f3f6fdbdcb41a4ad11f845f/svg-logo-text.png" data-sys-asset-uid="blt9844" data-sys-asset-filename="svg-logo-text.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>',
49
+ "locale"=> 'en-us',
50
+ "uid"=> 'blt88jn',
51
+ "created_by"=> 'bltcreate',
52
+ "updated_by"=> 'bltcreate',
53
+ "created_at"=> '2020-08-13T06:18:18.989Z',
54
+ "updated_at"=> '2020-08-31T06:06:31.258Z',
55
+ "markdown"=> '',
56
+ "_embedded_items"=> {
57
+ "rich_text_editor"=> [
58
+ {
59
+ "_content_type_uid"=> 'sys_assets',
60
+ "uid"=> 'blt44asset',
61
+ "created_at"=> '2020-08-19T09:13:32.785Z',
62
+ "updated_at"=> '2020-08-19T09:13:32.785Z',
63
+ "created_by"=> 'bltcreate',
64
+ "updated_by"=> 'bltcreate',
65
+ "content_type"=> 'application/pdf',
66
+ "file_size"=> '13264',
67
+ "filename"=> 'dummy.pdf',
68
+ "url"=> '/v3/assets/blt333/blt44asset/dummy.pdf',
69
+ "_version"=> 1,
70
+ "title"=> 'dummy.pdf'
71
+ },
72
+ {
73
+ "_content_type_uid"=> 'sys_assets',
74
+ "uid"=> 'blt9844',
75
+ "created_at"=> '2020-08-19T09:13:05.864Z',
76
+ "updated_at"=> '2020-09-10T09:35:28.393Z',
77
+ "created_by"=> 'bltcreate',
78
+ "updated_by"=> 'bltcreate',
79
+ "content_type"=> 'image/png',
80
+ "file_size"=> '36743',
81
+ "filename"=> 'svg-logo-text.png',
82
+ "url"=> '/v3/assets/blt333/blt9844/5f59f360d33e9a0a3571b707/svg-logo-text.png',
83
+ "_version"=> 7,
84
+ "title"=> 'svg-logo-text.png',
85
+ "description"=> '',
86
+ }
87
+ ]
88
+ }
89
+ }
90
+
91
+ ENTRY_ASSET_EMBED_BLANK = {
92
+ "title"=> 'one',
93
+ "url"=> '/one',
94
+ "rich_text_editor"=> '<p>&nbsp;</p><figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.asset/v3/assets/dummy.pdf" data-sys-asset-uid="blt44asset" data-sys-asset-filename="dummy.pdf" data-sys-asset-contenttype="application/pdf" type="asset" sys-style-type="display"></figure>\n<img data-image="236uaymkloww" src="https://contentstack.image/v3/assets/blt333/c/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt222" alt="html5.png">\n<p></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blt333/blt9844/5f3f6fdbdcb41a4ad11f845f/svg-logo-text.png" data-sys-asset-uid="blt9844" data-sys-asset-filename="svg-logo-text.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>',
95
+ "locale"=> 'en-us',
96
+ "uid"=> 'blt88jn',
97
+ "created_by"=> 'bltcreate',
98
+ "updated_by"=> 'bltcreate',
99
+ "created_at"=> '2020-08-13T06:18:18.989Z',
100
+ "updated_at"=> '2020-08-31T06:06:31.258Z',
101
+ "markdown"=> '',
102
+ }
103
+
104
+ ENTRY_EMBEDDED_ENTRIES = {
105
+ "title"=> 'entry and assets',
106
+ "url"=> '/entry-and-assets',
107
+ "rich_text_editor"=> '<figure class="embedded-entry block-entry" data-sys-entry-uid="blttitleUpdateUID" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="embeddedrte" sys-style-type="block" type="entry"></figure>\n<p></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetEmbuid/5f57ae45c83b840a87d92910/html5.png" data-sys-asset-uid="bltassetEmbuid" data-sys-asset-filename="svg-logo-text.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>',
108
+ "locale"=> 'en-us',
109
+ "_in_progress"=> false,
110
+ "uid"=> 'blt88jn',
111
+ "rte"=> '<figure class="embedded-entry block-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="bltemmbedEntryUID" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="embeddedrte" sys-style-type="inline" type="entry"></figure>\n<p></p>',
112
+ "_embedded_items"=> {
113
+ "rich_text_editor"=> [
114
+ {
115
+ "title"=> 'Update this title',
116
+ "url"=> '',
117
+ "locale"=> 'en-us',
118
+ "uid"=> 'blttitleuid',
119
+ "_content_type_uid"=> 'content_block',
120
+ "_version"=> 5,
121
+ "_in_progress"=> false,
122
+ "multi_line"=> '',
123
+ "_embedded_items"=> {
124
+ "rich_text_editor"=> [
125
+ {
126
+ "uid"=> 'blttitleuid',
127
+ "_content_type_uid"=> 'content_block'
128
+ }
129
+ ]
130
+ },
131
+ "rich_text_editor"=> '<figure class="embedded-entry inline-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="inline" type="entry"> asfsaf </figure>',
132
+ },
133
+ {
134
+ "title"=> 'updated title',
135
+ "rich_text_editor"=> [
136
+ '<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetUID/5f4dee15f4b7a40acfb622dc/DIABETICDIET-800x600.jpg" data-sys-asset-uid="bltassetUID" data-sys-asset-filename="DIABETICDIET-800x600.jpg" data-sys-asset-contenttype="image/jpeg" type="asset" sys-style-type="display"></figure>'
137
+ ],
138
+ "locale"=> 'en-us',
139
+ "uid"=> 'blttitleUpdateUID',
140
+ "_content_type_uid"=> 'embeddedrte',
141
+ "_in_progress"=> false,
142
+ "_embedded_items"=> {
143
+ "rich_text_editor"=> [
144
+ {
145
+ "uid"=> 'bltassetUID',
146
+ "_content_type_uid"=> 'sys_assets',
147
+ }
148
+ ]
149
+ }
150
+ },
151
+ {
152
+ "title"=> 'Entry with embedded entry',
153
+ "rich_text_editor"=> [
154
+ '<figure class="embedded-entry block-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="inline" type="entry"></figure>\n<p><br><br></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/blt1234AssetUID/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt1234AssetUID" data-sys-asset-filename="html5.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>'
155
+ ],
156
+ "locale"=> 'en-us',
157
+ "uid"=> 'bltemmbedEntryUID',
158
+ "_content_type_uid"=> 'embeddedrte',
159
+ "_in_progress"=> false,
160
+ "_embedded_items"=> {
161
+ "rich_text_editor"=> [
162
+ {
163
+ "uid"=> 'blt1234CtUID',
164
+ "_content_type_uid"=> '1234'
165
+ },
166
+ {
167
+ "uid"=> 'blt1234CtUID',
168
+ "_content_type_uid"=> '1234'
169
+ },
170
+ {
171
+ "uid"=> 'blt1234AssetUID',
172
+ "_content_type_uid"=> 'sys_assets'
173
+ }
174
+ ]
175
+ }
176
+ },
177
+ {
178
+ "uid"=> 'bltassetEmbuid',
179
+ "_content_type_uid"=> 'sys_assets',
180
+ "content_type"=> 'image/png',
181
+ "file_size"=> '36743',
182
+ "filename"=> 'svg-logo-text.png',
183
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
184
+ "title"=> 'svg-logo-text.png',
185
+ "description"=> ''
186
+ }
187
+ ],
188
+ "rte"=> [
189
+ {
190
+ "uid"=> 'bltassetEmbuid',
191
+ "content_type"=> 'image/png',
192
+ "_content_type_uid"=> 'sys_assets',
193
+ "file_size"=> '36743',
194
+ "filename"=> 'svg-logo-text.png',
195
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
196
+ "title"=> 'svg-logo-text.png',
197
+ "description"=> ''
198
+ },
199
+ {
200
+ "title"=> 'Update this title',
201
+ "url"=> '',
202
+ "locale"=> 'en-us',
203
+ "uid"=> 'blttitleuid',
204
+ "_content_type_uid"=> 'content_block',
205
+ "_version"=> 5,
206
+ "_in_progress"=> false,
207
+ "multi_line"=> '',
208
+ "_embedded_items"=> {
209
+ "rich_text_editor"=> [
210
+ {
211
+ "uid"=> 'blttitleuid',
212
+ "_content_type_uid"=> 'content_block'
213
+ }
214
+ ]
215
+ },
216
+ "rich_text_editor"=> '<figure class="embedded-entry inline-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="inline" type="entry"> asfsaf </figure>',
217
+ },
218
+ {
219
+ "title"=> 'updated title',
220
+ "rich_text_editor"=> [
221
+ '<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetUID/5f4dee15f4b7a40acfb622dc/DIABETICDIET-800x600.jpg" data-sys-asset-uid="bltassetUID" data-sys-asset-filename="DIABETICDIET-800x600.jpg" data-sys-asset-contenttype="image/jpeg" type="asset" sys-style-type="display"></figure>'
222
+ ],
223
+ "locale"=> 'en-us',
224
+ "uid"=> 'blttitleUpdateUID',
225
+ "_content_type_uid"=> 'embeddedrte',
226
+ "_in_progress"=> false,
227
+ "_embedded_items"=> {
228
+ "rich_text_editor"=>
229
+ [
230
+ {
231
+ "uid"=> 'bltassetUID',
232
+ "_content_type_uid"=> 'sys_assets'
233
+ }
234
+ ]
235
+ }
236
+ },
237
+ {
238
+ "title"=> 'Entry with embedded entry',
239
+ "rich_text_editor"=> [
240
+ '<figure class="embedded-entry block-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="inline" type="entry"></figure>\n<p><br><br></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/blt1234AssetUID/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt1234AssetUID" data-sys-asset-filename="html5.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>'
241
+ ],
242
+ "locale"=> 'en-us',
243
+ "uid"=> 'bltemmbedEntryUID',
244
+ "_content_type_uid"=> 'embeddedrte',
245
+ "_in_progress"=> false,
246
+ "_embedded_items"=> {
247
+ "rich_text_editor"=>[
248
+ {
249
+ "uid"=> 'blt1234CtUID',
250
+ "_content_type_uid"=> '1234'
251
+ },
252
+ {
253
+ "uid"=> 'blt1234CtUID',
254
+ "_content_type_uid"=> '1234'
255
+ },
256
+ {
257
+ "uid"=> 'blt1234AssetUID',
258
+ "_content_type_uid"=> 'sys_assets'
259
+ }
260
+ ]
261
+ }
262
+ }
263
+ ]
264
+ }
265
+ }
266
+
267
+ ENTRY_EMBEDDED_OBJECTS = {
268
+ "title"=> 'entry and assets',
269
+ "url"=> '/entry-and-assets',
270
+ "rich_text_editor"=> '<figure class="embedded-entry block-entry" data-sys-entry-uid="blttitleUpdateUID" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="embeddedrte" sys-style-type="block" type="entry"></figure>\n<p></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetEmbuid/5f57ae45c83b840a87d92910/html5.png" data-sys-asset-uid="bltassetEmbuid" data-sys-asset-filename="svg-logo-text.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>',
271
+ "locale"=> 'en-us',
272
+ "_in_progress"=> false,
273
+ "uid"=> 'blt88jn',
274
+ "rte"=> '<figure class="embedded-entry block-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="bltemmbedEntryUID" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="embeddedrte" sys-style-type="inline" type="entry"></figure>\n<p></p>',
275
+ "_embedded_items"=> {
276
+ "rich_text_editor"=> [
277
+ {
278
+ "uid"=> 'bltassetEmbuid',
279
+ "content_type"=> 'image/png',
280
+ "file_size"=> '36743',
281
+ "filename"=> 'svg-logo-text.png',
282
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
283
+ "title"=> 'svg-logo-text.png',
284
+ "description"=> '',
285
+ "_content_type_uid"=> 'sys_assets',
286
+ },
287
+ {
288
+ "title"=> 'Update this title',
289
+ "url"=> '',
290
+ "locale"=> 'en-us',
291
+ "uid"=> 'blttitleuid',
292
+ "_content_type_uid"=> 'content_block',
293
+ "_version"=> 5,
294
+ "_in_progress"=> false,
295
+ "multi_line"=> '',
296
+ "_embedded_items"=> {
297
+ "rich_text_editor"=> [
298
+ {
299
+ "uid"=> 'blttitleuid',
300
+ "_content_type_uid"=> 'content_block'
301
+ }
302
+ ]
303
+ },
304
+ "rich_text_editor"=> '<figure class="embedded-entry inline-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="inline" type="entry"></figure>',
305
+ },
306
+ {
307
+ "title"=> 'updated title',
308
+ "rich_text_editor"=> [
309
+ '<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetUID/5f4dee15f4b7a40acfb622dc/DIABETICDIET-800x600.jpg" data-sys-asset-uid="bltassetUID" data-sys-asset-filename="DIABETICDIET-800x600.jpg" data-sys-asset-contenttype="image/jpeg" type="asset" sys-style-type="display"></figure>'
310
+ ],
311
+ "locale"=> 'en-us',
312
+ "uid"=> 'blttitleUpdateUID',
313
+ "_content_type_uid"=> 'embeddedrte',
314
+ "_in_progress"=> false,
315
+ "_embedded_items"=> {
316
+ "rich_text_editor"=>
317
+ [
318
+ {
319
+ "uid"=> 'bltassetUID',
320
+ "_content_type_uid"=> 'sys_assets'
321
+ }
322
+ ]
323
+ }
324
+ },
325
+ {
326
+ "title"=> 'Entry with embedded entry',
327
+ "rich_text_editor"=> [
328
+ '<figure class="embedded-entry block-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="inline" type="entry"></figure>\n<p><br><br></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/blt1234AssetUID/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt1234AssetUID" data-sys-asset-filename="html5.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>'
329
+ ],
330
+ "locale"=> 'en-us',
331
+ "uid"=> 'bltemmbedEntryUID',
332
+ "_content_type_uid"=> 'embeddedrte',
333
+ "_in_progress"=> false,
334
+ "_embedded_items"=> {
335
+ "rich_text_editor"=> [
336
+ {
337
+ "uid"=> 'blt1234CtUID',
338
+ "_content_type_uid"=> '1234'
339
+ },
340
+ {
341
+ "uid"=> 'blt1234CtUID',
342
+ "_content_type_uid"=> '1234'
343
+ },
344
+ {
345
+ "uid"=> 'blt1234AssetUID',
346
+ "_content_type_uid"=> 'sys_assets'
347
+ }
348
+ ]
349
+ }
350
+ }
351
+ ],
352
+ "rte"=> [
353
+ {
354
+ "title"=> 'Update this title',
355
+ "url"=> '',
356
+ "locale"=> 'en-us',
357
+ "uid"=> 'blttitleuid',
358
+ "_content_type_uid"=> 'content_block',
359
+ "_version"=> 5,
360
+ "_in_progress"=> false,
361
+ "multi_line"=> '',
362
+ "_embedded_items"=> {
363
+ "rich_text_editor"=>[
364
+ {
365
+ "uid"=> 'blttitleuid',
366
+ "_content_type_uid"=> 'content_block'
367
+ }
368
+ ]
369
+ },
370
+ "rich_text_editor"=> '<figure class="embedded-entry inline-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="inline" type="entry"></figure>',
371
+ },
372
+ {
373
+ "title"=> 'updated title',
374
+ "rich_text_editor"=> [
375
+ '<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetUID/5f4dee15f4b7a40acfb622dc/DIABETICDIET-800x600.jpg" data-sys-asset-uid="bltassetUID" data-sys-asset-filename="DIABETICDIET-800x600.jpg" data-sys-asset-contenttype="image/jpeg" type="asset" sys-style-type="display"></figure>'
376
+ ],
377
+ "locale"=> 'en-us',
378
+ "uid"=> 'blttitleUpdateUID',
379
+ "_content_type_uid"=> 'embeddedrte',
380
+ "_in_progress"=> false,
381
+ "_embedded_items"=> {
382
+ "rich_text_editor"=>
383
+ [
384
+ {
385
+ "uid"=> 'bltassetUID',
386
+ "_content_type_uid"=> 'sys_assets',
387
+ }
388
+ ]
389
+ }
390
+ },
391
+ {
392
+ "title"=> 'Entry with embedded entry',
393
+ "rich_text_editor"=> [
394
+ '<figure class="embedded-entry block-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="inline" type="entry"></figure>\n<p><br><br></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/blt1234AssetUID/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt1234AssetUID" data-sys-asset-filename="html5.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>'
395
+ ],
396
+ "locale"=> 'en-us',
397
+ "uid"=> 'bltemmbedEntryUID',
398
+ "_content_type_uid"=> 'embeddedrte',
399
+ "_in_progress"=> false,
400
+ "_embedded_items"=> {
401
+ "rich_text_editor"=>[
402
+ {
403
+ "uid"=> 'blt1234CtUID',
404
+ "_content_type_uid"=> '1234'
405
+ },
406
+ {
407
+ "uid"=> 'blt1234CtUID',
408
+ "_content_type_uid"=> '1234'
409
+ },
410
+ {
411
+ "uid"=> 'blt1234AssetUID',
412
+ "_content_type_uid"=> 'sys_assets'
413
+ }
414
+ ]
415
+ }
416
+ }
417
+ ]
418
+ }
419
+ }
420
+ ENNTRY_MULTIPLE_EMBED = {
421
+ "title"=> 'entry and assets',
422
+ "url"=> '/entry-and-assets',
423
+ "rich_text_editor"=> '<figure class="embedded-entry block-entry" data-sys-entry-uid="blttitleUpdateUID" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="embeddedrte" sys-style-type="block" type="entry"></figure>\n<p></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetEmbuid/5f57ae45c83b840a87d92910/html5.png" data-sys-asset-uid="bltassetEmbuid" data-sys-asset-filename="svg-logo-text.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>',
424
+ "locale"=> 'en-us',
425
+ "_in_progress"=> false,
426
+ "uid"=> 'blt88jn',
427
+ "rte"=> '<figure class="embedded-entry block-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="bltemmbedEntryUID" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="embeddedrte" sys-style-type="inline" type="entry"></figure>\n<p></p>',
428
+ "_embedded_items"=> {
429
+ "rich_text_editor"=> [
430
+ {
431
+ "uid"=> 'bltassetEmbuid',
432
+ "content_type"=> 'image/png',
433
+ "file_size"=> '36743',
434
+ "filename"=> 'svg-logo-text.png',
435
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
436
+ "title"=> 'svg-logo-text.png',
437
+ "description"=> '',
438
+ "_content_type_uid"=> 'sys_assets',
439
+ },
440
+ {
441
+ "title"=> 'Update this title',
442
+ "url"=> '',
443
+ "locale"=> 'en-us',
444
+ "uid"=> 'blttitleuid',
445
+ "_content_type_uid"=> 'content_block',
446
+ "_version"=> 5,
447
+ "_in_progress"=> false,
448
+ "multi_line"=> '',
449
+ "_embedded_items"=> {
450
+ "rich_text_editor"=> [
451
+ {
452
+ "uid"=> 'blttitleuid',
453
+ "_content_type_uid"=> 'content_block'
454
+ }
455
+ ]
456
+ },
457
+ "rich_text_editor"=> '<figure class="embedded-entry inline-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="inline" type="entry"></figure>',
458
+ },
459
+ {
460
+ "title"=> 'updated title',
461
+ "rich_text_editor"=> [
462
+ '<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetUID/5f4dee15f4b7a40acfb622dc/DIABETICDIET-800x600.jpg" data-sys-asset-uid="bltassetUID" data-sys-asset-filename="DIABETICDIET-800x600.jpg" data-sys-asset-contenttype="image/jpeg" type="asset" sys-style-type="display"></figure>'
463
+ ],
464
+ "locale"=> 'en-us',
465
+ "uid"=> 'blttitleUpdateUID',
466
+ "_content_type_uid"=> 'embeddedrte',
467
+ "_in_progress"=> false,
468
+ "_embedded_items"=> {
469
+ "rich_text_editor"=>[
470
+ {
471
+ "_content_type_uid"=> 'sys_assets',
472
+ "uid"=> 'bltassetUID',
473
+ "content_type"=> 'image/png',
474
+ "file_size"=> '36743',
475
+ "filename"=> 'svg-logo-text.png',
476
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
477
+ "title"=> 'svg-logo-text.png',
478
+ "description"=> ''
479
+ }
480
+ ]
481
+ }
482
+ },
483
+ {
484
+ "title"=> 'Entry with embedded entry',
485
+ "rich_text_editor"=> [
486
+ '<figure class="embedded-entry block-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="inline" type="entry"></figure>\n<p><br><br></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/blt1234AssetUID/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt1234AssetUID" data-sys-asset-filename="html5.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>'
487
+ ],
488
+ "locale"=> 'en-us',
489
+ "uid"=> 'bltemmbedEntryUID',
490
+ "_content_type_uid"=> 'embeddedrte',
491
+ "_in_progress"=> false,
492
+ "_embedded_items"=> {
493
+ "rich_text_editor"=>[
494
+ {
495
+ "uid"=> 'blt1234CtUID',
496
+ "_content_type_uid"=> '1234'
497
+ },
498
+ {
499
+ "uid"=> 'blt1234CtUID',
500
+ "_content_type_uid"=> '1234'
501
+ },
502
+ {
503
+ "uid"=> 'blt1234AssetUID',
504
+ "_content_type_uid"=> 'sys_assets'
505
+ }
506
+ ]
507
+ },
508
+ }
509
+ ],
510
+ "rte"=> [
511
+ {
512
+ "uid"=> 'bltassetEmbuid',
513
+ "content_type"=> 'image/png',
514
+ "_content_type_uid"=> 'sys_assets',
515
+ "file_size"=> '36743',
516
+ "filename"=> 'svg-logo-text.png',
517
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
518
+ "title"=> 'svg-logo-text.png',
519
+ "description"=> ''
520
+ },
521
+ {
522
+ "title"=> 'Update this title',
523
+ "url"=> '',
524
+ "locale"=> 'en-us',
525
+ "uid"=> 'blttitleuid',
526
+ "_content_type_uid"=> 'content_block',
527
+ "_version"=> 5,
528
+ "_in_progress"=> false,
529
+ "multi_line"=> '',
530
+ "_embedded_items"=> {
531
+ "rich_text_editor"=>[
532
+ {
533
+ "uid"=> 'blttitleuid',
534
+ "_content_type_uid"=> 'content_block'
535
+ }
536
+ ]
537
+ },
538
+ "rich_text_editor"=> '<figure class="embedded-entry inline-entry" data-sys-entry-uid="blttitleuid" data-sys-entry-"locale"="en-us" data-sys-content-type-uid="content_block" sys-style-type="inline" type="entry"></figure>',
539
+ },
540
+ {
541
+ "title"=> 'updated title',
542
+ "rich_text_editor"=> [
543
+ '<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/bltassetUID/5f4dee15f4b7a40acfb622dc/DIABETICDIET-800x600.jpg" data-sys-asset-uid="bltassetUID" data-sys-asset-filename="DIABETICDIET-800x600.jpg" data-sys-asset-contenttype="image/jpeg" type="asset" sys-style-type="display"></figure>'
544
+ ],
545
+ "locale"=> 'en-us',
546
+ "uid"=> 'blttitleUpdateUID',
547
+ "_content_type_uid"=> 'embeddedrte',
548
+ "_in_progress"=> false,
549
+ "_embedded_items"=> {
550
+ "rich_text_editor"=>[
551
+ {
552
+ "uid"=> 'bltassetUID',
553
+ "content_type"=> 'image/png',
554
+ "file_size"=> '36743',
555
+ "filename"=> 'svg-logo-text.png',
556
+ "url"=> '/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png',
557
+ "title"=> 'svg-logo-text.png',
558
+ "description"=> '',
559
+ "_content_type_uid"=> 'sys_assets',
560
+ }
561
+ ]
562
+ }
563
+ },
564
+ {
565
+ "title"=> 'Entry with embedded entry',
566
+ "rich_text_editor"=> [
567
+ '<figure class="embedded-entry block-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="block" type="entry"></figure>\n<figure class="embedded-entry inline-entry" data-sys-entry-uid="blt1234CtUID" data-sys-content-type-uid="1234" sys-style-type="inline" type="entry"></figure>\n<p><br><br></p>\n<figure class="embedded-asset" data-sys-asset-filelink="https://contentstack.image/v3/assets/blturl/blt1234AssetUID/5f47707a1cef380a7a669416/html5.png" data-sys-asset-uid="blt1234AssetUID" data-sys-asset-filename="html5.png" data-sys-asset-contenttype="image/png" type="asset" sys-style-type="display"></figure>'
568
+ ],
569
+ "locale"=> 'en-us',
570
+ "uid"=> 'bltemmbedEntryUID',
571
+ "_content_type_uid"=> 'embeddedrte',
572
+ "_in_progress"=> false,
573
+ "_embedded_items"=> {
574
+ "rich_text_editor"=> [
575
+ {
576
+ "uid"=> 'blt1234CtUID',
577
+ "_content_type_uid"=> '1234'
578
+ },
579
+ {
580
+ "uid"=> 'blt1234CtUID',
581
+ "_content_type_uid"=> '1234'
582
+ },
583
+ {
584
+ "uid"=> 'blt1234AssetUID',
585
+ "_content_type_uid"=> 'sys_assets',
586
+ }
587
+ ]
588
+ }
589
+ }
590
+ ]
591
+ },
592
+ }
593
+
594
+ ENTRY_ASSET_RICH_TEXT = "<p></p>
595
+ <img src='/v3/assets/blt333/blt44asset/dummy.pdf' alt='dummy.pdf' />\\n<img data-image=\"236uaymkloww\" src=\"https://contentstack.image/v3/assets/blt333/c/5f47707a1cef380a7a669416/html5.png\" data-sys-asset-uid=\"blt222\" alt=\"html5.png\">\\n<p></p>\\n<img src='/v3/assets/blt333/blt9844/5f59f360d33e9a0a3571b707/svg-logo-text.png' alt='svg-logo-text.png' />"
596
+
597
+ ENTRY_ASSET_RICH_TEXT_RENDER_OPTION = "<p></p>
598
+ <img src=\"/v3/assets/blt333/blt44asset/dummy.pdf\" alt=\"Alternet Text\" />\\n<img data-image=\"236uaymkloww\" src=\"https://contentstack.image/v3/assets/blt333/c/5f47707a1cef380a7a669416/html5.png\" data-sys-asset-uid=\"blt222\" alt=\"html5.png\">\\n<p></p>\\n<img src=\"/v3/assets/blt333/blt9844/5f59f360d33e9a0a3571b707/svg-logo-text.png\" alt=\"Alternet Text\" />"
599
+
600
+ ENTRY_MULTIPLE_RICH_TEXT = "<div><p>updated title</p><p>Content type: <span>embeddedrte</span></p></div>\\n<p></p>\\n<img src='/v3/assets/blturl/bltassetEmbuid/5f59f360d33e9a0a3571b707/svg-logo-text.png' alt='svg-logo-text.png' />"
601
+
602
+ entrymultipleRTE = "<div><p>Update this title</p><p>Content type=> <span>content_block</span></p></div>
603
+ <span>Entry with embedded entry</span>
604
+ <p></p>"
605
+
606
+ entrymultipleRTERenderOption = "<div>
607
+ <div>Update this title</div>
608
+ <div><span>blttitleuid</span>
609
+ </div>
610
+ <div>
611
+ <div>bltemmbedEntryUID</div>
612
+ <MYCONTENT><div><p>blt1234CtUID</p><p>Content type=> <span>1234</span></p></div>
613
+ <span>blt1234CtUID</span>
614
+ <p><br><br></p>
615
+ <img src='undefined' alt='blt1234AssetUID' /></MYCONTENT>
616
+ </div>
617
+ <p></p>"