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 • 718 B
import type { YooEditor } from '../types'; import type { GetSlateSelectionOptions } from './types'; /** * Check if Slate selection is expanded (has selected text) * * @param editor - YooEditor instance * @param options - Check options * @returns True if selection is expanded, false otherwise * * @example * ```typescript * // Check if current selection is expanded * const isExpanded = Selection.isExpanded(editor); * * // Check if selection in specific block is expanded * const isExpanded = Selection.isExpanded(editor, { at: 0 }); * ``` */ export declare function isExpanded(editor: YooEditor, options?: GetSlateSelectionOptions): boolean; //# sourceMappingURL=isExpanded.d.ts.map