editor-js-custom-marker
v1.1.5
Published
Fork and custom from @editorjs/marker
Downloads
19
Maintainers
Readme
Fork from editor-js/marker.
Create custom marker.
Usage
Install.
yarn add editor-js-custom-marker
and setting
const editor = new EditorJS({
autofocus: true,
tools: {
redMarker: CustomMarker("赤", "#ffecec", "bg-red", "span"),
blueMarker: CustomMarker("青", "#ececff", "bg-blue", "span"),
redFontMarker: CustomMarker("赤", "#bb0000", "red", "span", true), // font color
},
});