@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
27 lines • 880 B
TypeScript
import type { YooEditor } from '../types';
import type { ClearMarksOptions } from './types';
/**
* Clear all marks from specified selection or blocks
*
* @param editor - YooEditor instance
* @param options - Clear marks options
*
* @example
* ```typescript
* // Clear all marks from current text selection (slate.selection) or whole block
* Marks.clear(editor);
*
* // Clear all marks from specific selection
* Marks.clear(editor, {
* selection: { anchor: { path: [0, 0], offset: 0 }, focus: { path: [0, 0], offset: 5 } }
* });
*
* // Clear all marks from specific block
* Marks.clear(editor, { at: 0 });
*
* // Clear all marks from multiple blocks
* Marks.clear(editor, { at: [0, 1, 2] });
* ```
*/
export declare function clearMarks(editor: YooEditor, options?: ClearMarksOptions): void;
//# sourceMappingURL=clearMarks.d.ts.map