@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 • 748 B
TypeScript
import type { YooEditor } from '../types';
import type { IsMarkActiveOptions } from './types';
/**
* Check if mark is active in current selection or specified block
*
* @param editor - YooEditor instance
* @param options - Check mark active options
* @returns True if mark is active, false otherwise
*
* @example
* ```typescript
* // Check if bold is active in current selection
* const isBold = Marks.isActive(editor, { type: 'bold' });
*
* // Check if italic is active in specific block
* const isItalic = Marks.isActive(editor, {
* type: 'italic',
* at: 0
* });
* ```
*/
export declare function isActive(editor: YooEditor, options: IsMarkActiveOptions): boolean;
//# sourceMappingURL=isActive.d.ts.map