/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/rich-text/src/contexts.js
17 строк
739 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import { createContext } from '@wordpress/element'; /** * Holds a ref to a Set of keyboard shortcut callbacks registered by format * types (via `RichTextShortcut`). The rich text field that owns the editable * element provides the ref and dispatches the callbacks on `keydown`. */ export const KeyboardShortcutContext = createContext(); KeyboardShortcutContext.displayName = 'KeyboardShortcutContext'; /** * Holds a ref to a Set of `InputEvent` callbacks registered by format types * (via `RichTextInputEvent`). The rich text field that owns the editable * element provides the ref and dispatches the callbacks on `input`. */ export const InputEventContext = createContext(); InputEventContext.displayName = 'InputEventContext';