Skip to content

Commit c3377d8

Browse files
committed
[feature] use an embedded image instead of external source
1 parent f1580de commit c3377d8

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

packages/prosemirror-lwdita-demo/cypress/e2e/download.cy.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const mockXML = `<?xml version="1.0" encoding="UTF-8"?>
2424
<strong>strong</strong>
2525
and <sub>subscript</sub> and <sup>superscipt</sup> and <tt>tele type</tt> and
2626
<u>underline</u>
27-
<image href="https://picsum.photos/200/300">
27+
<image href="https://static.evolvedbinary.com/petal/eb-rose-small.png">
2828
<alt>alt text</alt>
2929
</image>
3030
</title>
@@ -67,13 +67,13 @@ export const mockXML = `<?xml version="1.0" encoding="UTF-8"?>
6767
<fallback>
6868
<p>The theme song is not available.</p>
6969
</fallback>
70-
<media-source href="https://upload.wikimedia.org/wikipedia/commons/a/aa/1943_Nov_14_NYPhil_Bernstein.ogg" format="application/ogg"/>
70+
<media-source href="https://static.evolvedbinary.com/petal/1943_Nov_14_NYPhil_Bernstein.ogg" format="application/ogg"/>
7171
<media-track srclang="en"/>
7272
</audio>
7373
<video outputclass="videoElement" width="320" height="240" controls="true">
7474
<desc>Kool-Aid Commercial, Debut of Pitcher Man</desc>
75-
<video-poster href="https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm/120px--1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm.jpg"/>
76-
<media-source href="https://upload.wikimedia.org/wikipedia/commons/7/74/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm"/>
75+
<video-poster href="https://static.evolvedbinary.com/petal/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm.jpg"/>
76+
<media-source href="https://static.evolvedbinary.com/petal/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm"/>
7777
</video>
7878
<example>
7979
<title>title</title>
@@ -108,7 +108,7 @@ export const mockXML = `<?xml version="1.0" encoding="UTF-8"?>
108108
<fig>
109109
<title>Figure title</title>
110110
<desc>Figure description</desc>
111-
<image href="https://placehold.co/300x300">
111+
<image href="https://static.evolvedbinary.com/petal/eb-rose-small.png">
112112
<alt>alt text</alt>
113113
</image>
114114
</fig>

packages/prosemirror-lwdita-demo/example-xdita/06-lwdita-schema-example.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<strong>strong</strong>
88
and <sub>subscript</sub> and <sup>superscipt</sup> and <tt>tele type</tt> and
99
<u>underline</u>
10-
<image href="https://picsum.photos/200/300">
10+
<image href="https://static.evolvedbinary.com/petal/eb-rose-small.png">
1111
<alt>alt text</alt>
1212
</image>
1313
</title>
@@ -50,13 +50,13 @@
5050
<fallback>
5151
<p>The theme song is not available.</p>
5252
</fallback>
53-
<media-source href="https://upload.wikimedia.org/wikipedia/commons/a/aa/1943_Nov_14_NYPhil_Bernstein.ogg" format="application/ogg"/>
53+
<media-source href="https://static.evolvedbinary.com/petal/1943_Nov_14_NYPhil_Bernstein.ogg" format="application/ogg"/>
5454
<media-track srclang="en"/>
5555
</audio>
5656
<video outputclass="videoElement" width="320" height="240" controls="true">
5757
<desc>Kool-Aid Commercial, Debut of Pitcher Man</desc>
58-
<video-poster href="https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm/120px--1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm.jpg"/>
59-
<media-source href="https://upload.wikimedia.org/wikipedia/commons/7/74/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm"/>
58+
<video-poster href="https://static.evolvedbinary.com/petal/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm.jpg"/>
59+
<media-source href="https://static.evolvedbinary.com/petal/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm"/>
6060
</video>
6161
<example>
6262
<title>title</title>
@@ -91,7 +91,7 @@
9191
<fig>
9292
<title>Figure title</title>
9393
<desc>Figure description</desc>
94-
<image href="https://placehold.co/300x300">
94+
<image href="https://static.evolvedbinary.com/petal/eb-rose-small.png">
9595
<alt>alt text</alt>
9696
</image>
9797
</fig>

packages/prosemirror-lwdita-demo/src/doc.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (!storedFile) {
4343
<strong>strong</strong>
4444
and <sub>subscript</sub> and <sup>superscipt</sup> and <tt>tele type</tt> and
4545
<u>underline</u>
46-
<image href="https://picsum.photos/200/300">
46+
<image href="https://static.evolvedbinary.com/petal/eb-rose-small.png">
4747
<alt>alt text</alt>
4848
</image>
4949
</title>
@@ -86,13 +86,13 @@ if (!storedFile) {
8686
<fallback>
8787
<p>The theme song is not available.</p>
8888
</fallback>
89-
<media-source href="https://upload.wikimedia.org/wikipedia/commons/a/aa/1943_Nov_14_NYPhil_Bernstein.ogg" format="application/ogg"/>
89+
<media-source href="https://static.evolvedbinary.com/petal/1943_Nov_14_NYPhil_Bernstein.ogg" format="application/ogg"/>
9090
<media-track srclang="en"/>
9191
</audio>
9292
<video outputclass="videoElement" width="320" height="240" controls="true">
9393
<desc>Kool-Aid Commercial, Debut of Pitcher Man</desc>
94-
<video-poster href="https://upload.wikimedia.org/wikipedia/commons/thumb/7/74/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm/120px--1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm.jpg"/>
95-
<media-source href="https://upload.wikimedia.org/wikipedia/commons/7/74/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm"/>
94+
<video-poster href="https://static.evolvedbinary.com/petal/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm.jpg"/>
95+
<media-source href="https://static.evolvedbinary.com/petal/1954_Kool-Aid_Commercial._Debut_of_Pitcher_Man.webm"/>
9696
</video>
9797
<example>
9898
<title>title</title>
@@ -127,7 +127,7 @@ if (!storedFile) {
127127
<fig>
128128
<title>Figure title</title>
129129
<desc>Figure description</desc>
130-
<image href="https://placehold.co/300x300">
130+
<image href="https://static.evolvedbinary.com/petal/eb-rose-small.png">
131131
<alt>alt text</alt>
132132
</image>
133133
</fig>

0 commit comments

Comments
 (0)