Skip to content

Commit b78f3a7

Browse files
committed
Update README.md
1 parent 549c95f commit b78f3a7

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ Return Editor.js content version
8282
#### `getTime()`
8383
Return Editor.js content timestamp
8484

85+
#### `getBlocks()`
86+
Return Editor.js content blocks
87+
8588
### Generated HTML
8689

8790
##### Code
@@ -125,7 +128,7 @@ Return Editor.js content timestamp
125128
<div class="prs-link-url">https://example.com/</div>
126129
</div>
127130
<div class="prs-link-img-container">
128-
<img src="https://example.com/cat.png">
131+
<img src="https://example.com/cat.png" alt="">
129132
</div>
130133
</a>
131134
```
@@ -164,7 +167,7 @@ Return Editor.js content timestamp
164167

165168
```html
166169
<figure class="prs-image">
167-
<img src="" class="prs-image-border prs-image-background">
170+
<img src="" class="prs-image-border prs-image-background" alt="">
168171
<figcaption></figcaption>
169172
</figure>
170173
```
@@ -180,3 +183,11 @@ Return Editor.js content timestamp
180183
</div>
181184
</div>
182185
```
186+
187+
##### Raw
188+
189+
```html
190+
<div class="prs-raw">
191+
Raw HTML ...
192+
</div>
193+
```

0 commit comments

Comments
 (0)