You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,4 +23,18 @@ var editor = EditorJS({
23
23
},
24
24
// ...
25
25
});
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>..."
0 commit comments