codex-team / codex-team/editor.js
The sanitize of the save method and the convert to method interfere with each other
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
The format required by the block `save` method:
```javascript
static get sanitize(){
return {
url: false,
caption: {
a: true
}
}
}
```
The outermost object returned is a property, not a label.
`convent to` also uses this method, but it passes the result directly as a rule to and HTMLJanitor, as shown in the following figure


which causes the cleanup to fail.
Also, I noticed that even with the sanitize method configured, the `save` method still didn't clean up the data.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.