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 • 680 B
import type { YooEditor } from '../types'; import type { GetMarksOptions } from './types'; /** * Get all marks from current selection or specified block * * @param editor - YooEditor instance * @param options - Get marks options * @returns Object with all marks or null if no slate found * * @example * ```typescript * // Get all marks from current selection * const marks = Marks.getAll(editor); * * // Get all marks from specific block * const marks = Marks.getAll(editor, { at: 0 }); * ``` */ export declare function getMarks(editor: YooEditor, options?: GetMarksOptions): Record<string, unknown> | null; //# sourceMappingURL=getMarks.d.ts.map