@univerjs-pro/docs-code-ui
此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。
Code block UI plugin for Univer Docs.
TypeScript
import { UniverDocsCodeUIPlugin } from '@univerjs-pro/docs-code-ui'univer.registerPlugin(UniverDocsCodeUIPlugin, {})Entry Points
- Locale:
@univerjs-pro/docs-code-ui/locale/*
IUniverDocsCodeUIConfig
TypeScript
import type { MenuConfig } from '@univerjs/ui'export interface IUniverDocsCodeUIConfig { menu?: MenuConfig}Monospaced font picker
The code block toolbar lists fonts registered with FontCategory.MONOSPACE in the shared IFontService. Selecting one updates the whole block, including its paragraph styles. Register custom fonts with univerAPI.addFonts() and load their font files separately. See code fonts.
你覺得這篇文檔如何?