1.1.5 • Published 2 years ago
editor-js-custom-marker v1.1.5
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
},
});