codex-team / codex-team/editor.js

How to wrap a simple editorJs plugin around a react component such as material ui Alert?

Open
#1,384 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

How to wrap editor js text around a react component such as material ui Alert ?

Something like:

`This is the text entered in editor JS`

```
import Alert from '@material-ui/lab/Alert';
class Alert {
static get toolbox() {
return {
title: 'Image',
icon: 'SomeSVG'
};
}

render(){
return document.createElement('input');
}

save(blockContent){
return {
url: blockContent.value
}
}
}
```

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.