@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
28 lines • 854 B
TypeScript
import type { YooEditor } from '../types';
import type { RemoveMarkOptions } from './types';
/**
* Remove mark from specified selection or blocks
*
* @param editor - YooEditor instance
* @param options - Remove mark options
*
* @example
* ```typescript
* // Remove bold mark from current text selection (slate.selection) or whole block
* Marks.remove(editor, { type: 'bold' });
*
* // Remove mark from specific selection
* Marks.remove(editor, {
* type: 'bold',
* selection: { anchor: { path: [0, 0], offset: 0 }, focus: { path: [0, 0], offset: 5 } }
* });
*
* // Remove color mark from specific block
* Marks.remove(editor, {
* type: 'color',
* at: 0
* });
* ```
*/
export declare function removeMark(editor: YooEditor, options: RemoveMarkOptions): void;
//# sourceMappingURL=removeMark.d.ts.map