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

16 lines • 734 B
import type { YooEditor, YooptaBlockData } from '../editor/types'; /** * Deserializes Yoopta JSON clipboard data back to blocks. * This is the inverse of getYooptaJSON and preserves all block data exactly. * * @param editor - The Yoopta editor instance * @param jsonString - The JSON string from clipboard * @returns Array of YooptaBlockData ready to be inserted */ export declare function deserializeYooptaJSON(editor: YooEditor, jsonString: string): YooptaBlockData[] | null; /** * Check if a string looks like Yoopta clipboard data. * Quick validation before attempting full parse. */ export declare function isYooptaClipboardData(data: string): boolean; //# sourceMappingURL=deserializeYooptaJSON.d.ts.map