/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/editor/src/hooks/note-format.js
13 строк
497 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import { registerFormatType } from '@wordpress/rich-text'; import { NOTE_FORMAT_NAME, noteFormat, } from '../components/collab-sidebar/format'; /* * Registered on import rather than from a component: HTML is converted to a * rich text record eagerly, both when blocks are parsed and while a rich text * field first renders. A format registered after that leaves already-parsed * markers as `core/unknown` until their content changes. */ registerFormatType( NOTE_FORMAT_NAME, noteFormat );