Skip to content

Instantly share code, notes, and snippets.

View yzllee's full-sized avatar

杨阿郑 yzllee

  • 杭州
View GitHub Profile
@tranduongms1
tranduongms1 / quill-figure-with-caption.js
Last active October 2, 2024 07:40
Quill figure with caption, base on BlockEmbed
import Quill from 'quill';
const Module = Quill.import('core/module');
const BlockEmbed = Quill.import('blots/block/embed');
class ImageBlot extends BlockEmbed {
static blotName = 'image';
static tagName = ['figure', 'image'];
static create(value) {