UNPKG

@yoopta/editor

Version:

<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311

20 lines • 779 B
import type { YooEditor, YooptaBlockData, YooptaContentValue } from '../editor/types'; export type YooptaClipboardData = { version: number; editorId: string; blocks: YooptaBlockData[]; }; /** * Serializes Yoopta content to JSON format for clipboard. * This preserves all block data including complex props, marks, and metadata. * * @param editor - The Yoopta editor instance * @param content - The content to serialize * @returns JSON string with full block data */ export declare function getYooptaJSON(editor: YooEditor, content: YooptaContentValue): string; /** * The data attribute name used to store JSON in HTML clipboard */ export declare const YOOPTA_JSON_DATA_ATTR = "data-yoopta-json"; //# sourceMappingURL=getYooptaJSON.d.ts.map