@7span/nuxt-editorjs-renderer
v0.2.9
Published
SSR rendering of Editor.js blocks for Nuxt
Downloads
92
Readme
How to use
<!-- Provide blocks from editorjs -->
<EjRenderer :blocks="blocks" />
Slots
Use below slots to customize UI.
- header
- paragraph
- delimiter
- image
- nestedlist
- quote
- code
- table
Example
<EjRenderer>
<template #code="{ value }">
<custom-component :value="value" />
</template>
</EjRenderer>
/* To override css,
className pattern is .ejr__block_name.
Example below
*/
.ejr__code {
// custom css
}