editor-js / editor-js/list

Block «list» skipped because of plugins error

Open
#142 4 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
76
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Image

```
DataCloneError: Failed to execute 'structuredClone' on 'Window': # could not be cloned.
at eh (https://app.rcavon.org/_nuxt/D7sPVPPj.js:57:48382)
at new kt (https://app.rcavon.org/_nuxt/D7sPVPPj.js:57:49528)
at sn.create (https://app.rcavon.org/_nuxt/D7sPVPPj.js:43:8953)
at new pe (https://app.rcavon.org/_nuxt/D7sPVPPj.js:10:18986)
at Sc.composeBlock (https://app.rcavon.org/_nuxt/D7sPVPPj.js:34:54085)
at https://app.rcavon.org/_nuxt/D7sPVPPj.js:36:26163
at l (https://app.rcavon.org/_nuxt/Jr2nG2jA.js:10:7725)
at Array.map ()
at Wt (https://app.rcavon.org/_nuxt/Jr2nG2jA.js:10:7815)
at Proxy.map (https://app.rcavon.org/_nuxt/Jr2nG2jA.js:10:6843)
at https://app.rcavon.org/_nuxt/D7sPVPPj.js:36:25949
at new Promise ()
at Rc.render (https://app.rcavon.org/_nuxt/D7sPVPPj.js:36:25849)
at Gc.render (https://app.rcavon.org/_nuxt/D7sPVPPj.js:44:11706)
at https://app.rcavon.org/_nuxt/D7sPVPPj.js:44:9102
```
Code:
```
onMounted(async () => {
editor = new EditorJS({
holder: 'editorjs',
tools: {
header: {
class: Header,
inlineToolbar: true,
config: {
levels: [2, 3, 4],
defaultLevel: 2
},
},
list: {
class: EditorjsList,
inlineToolbar: true,
config: {
defaultStyle: 'ordered'
}
},
table: {
class: Table,
inlineToolbar: true,
config: {
rows: 1,
cols: 1,
stretched: false,
}
},
horizontalRule: HorizontalRule,
},
data: props.data,
async onChange(api, event) {
emit('change', api, event);
}
});
})
```

List data:
```json

{
"id": "UzyF_Kf6qA",
"type": "list",
"data": {
"meta": {},
"items": [
{
"meta": {},
"items": [],
"content": "test"
},
{
"meta": {},
"items": [],
"content": "test 2"
}
],
"style": "unordered"
}
},
{
"id": "lEMWmg2jf_",
"type": "list",
"data": {
"meta": {
"counterType": "numeric"
},
"items": [
{
"meta": {},
"items": [],
"content": "test"
},
{
"meta": {},
"items": [],
"content": "test 2"
}
],
"style": "ordered"
}
},
```

Versioning:
"@editorjs/editorjs": "^2.30.8",
"@editorjs/header": "^2.8.8",
"@editorjs/list": "^2.0.8",
"@editorjs/table": "^2.4.5",
"@sentry/nuxt": "^9.29.0",
"editorjs-html": "^3.4.3",
"nuxt": "^3.17.5",
"nuxt-icons": "^3.2.1",
"vue": "latest",
"vue-router": "latest"

Only happens when loading the data into the editor, not when rendering it as HTML or creating new blocks.

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.