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

23 lines • 727 B
import type { YooEditor } from '../types'; import type { GetMarkValueOptions } from './types'; /** * Get mark value from current selection or specified block * * @param editor - YooEditor instance * @param options - Get mark value options * @returns Mark value or null if not found * * @example * ```typescript * // Get mark value from current selection * const boldValue = Marks.getValue(editor, { type: 'bold' }); * * // Get mark value from specific block * const italicValue = Marks.getValue(editor, { * type: 'italic', * at: 0 * }); * ``` */ export declare function getValue(editor: YooEditor, options: GetMarkValueOptions): unknown | null; //# sourceMappingURL=getValue.d.ts.map