Skip to content

Commit da189fd

Browse files
committed
Update Readme
1 parent 19525a8 commit da189fd

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,18 @@ var editor = EditorJS({
2323
},
2424
// ...
2525
});
26-
```
26+
```
27+
28+
## Output data
29+
Annotation will be wrapped with a `span` tag. with an `cdx-annotation` class.
30+
31+
Additional data will be store in element's dataset: `data-title`, `data-text`.
32+
33+
```json
34+
{
35+
"type" : "paragraph",
36+
"data" : {
37+
"text" : "Nuclear power plants have a <span class=\"cdx-annotation\" data-title=\"Carbon footprint\" data-text=\"Indicator to compare the total amount...\">carbon footprint</span>..."
38+
}
39+
}
40+
```

0 commit comments

Comments
 (0)