This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ReactQuill, { Quill } from 'react-quill'; | |
class Divider extends Embed { | |
// if you want to add inline style, override create method | |
static create(value: any) { | |
const node = super.create(value); | |
// give it some inline styles | |
node.setAttribute('style', 'border: 0; border-top: 1px solid rgba(0,0,0,.1); margin-top:10px; margin-bottom:10px;'); | |
return node; | |
} |