API 참조

@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.

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.