UNPKG

rhino-editor

Version:

A custom element wrapped rich text editor

40 lines (37 loc) 744 B
import { Node, mergeAttributes } from "./chunk-TVRRLXKH.js"; // src/exports/extensions/figcaption.ts var Figcaption = Node.create({ name: "attachment-figcaption", group: "block figcaption", content: "inline*", selectable: false, draggable: false, defining: true, isolating: true, addOptions() { return { HTMLAttributes: { class: "attachment__caption attachment--edited" } }; }, parseHTML() { return [ { tag: `figure.attachment figcaption` } ]; }, renderHTML({ HTMLAttributes }) { return [ "figcaption", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0 ]; } }); export { Figcaption }; //# sourceMappingURL=chunk-TGA7EZNI.js.map