跳到主要内容

CodeEditorProps

Defined in: packages/code-editor-react/src/CodeEditor.tsx:54

CodeEditor 的属性。未列出的属性透传给宿主 div(className / style / data-* / DOM 事件等),children / dangerouslySetInnerHTML / onChange 除外。

Extends​

  • CodeEditorHostProps

Properties​

about?​

optional about?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2914

Inherited from​

CodeEditorHostProps.about

accessKey?​

optional accessKey?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2887

Inherited from​

CodeEditorHostProps.accessKey

aria-activedescendant?​

optional aria-activedescendant?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2585

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

Inherited from​

CodeEditorHostProps.aria-activedescendant

aria-atomic?​

optional aria-atomic?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2587

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

Inherited from​

CodeEditorHostProps.aria-atomic

aria-autocomplete?​

optional aria-autocomplete?: "none" | "both" | "inline" | "list";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2592

Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.

Inherited from​

CodeEditorHostProps.aria-autocomplete

aria-braillelabel?​

optional aria-braillelabel?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2598

Defines a string value that labels the current element, which is intended to be converted into Braille.

See​

aria-label.

Inherited from​

CodeEditorHostProps.aria-braillelabel

aria-brailleroledescription?​

optional aria-brailleroledescription?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2603

Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.

See​

aria-roledescription.

Inherited from​

CodeEditorHostProps.aria-brailleroledescription

aria-busy?​

optional aria-busy?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2604

Inherited from​

CodeEditorHostProps.aria-busy

aria-checked?​

optional aria-checked?: boolean | "true" | "false" | "mixed";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2609

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.

See​

  • aria-pressed
  • aria-selected.

Inherited from​

CodeEditorHostProps.aria-checked

aria-colcount?​

optional aria-colcount?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2614

Defines the total number of columns in a table, grid, or treegrid.

See​

aria-colindex.

Inherited from​

CodeEditorHostProps.aria-colcount

aria-colindex?​

optional aria-colindex?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2619

Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

See​

  • aria-colcount
  • aria-colspan.

Inherited from​

CodeEditorHostProps.aria-colindex

aria-colindextext?​

optional aria-colindextext?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2624

Defines a human readable text alternative of aria-colindex.

See​

aria-rowindextext.

Inherited from​

CodeEditorHostProps.aria-colindextext

aria-colspan?​

optional aria-colspan?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2629

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

See​

  • aria-colindex
  • aria-rowspan.

Inherited from​

CodeEditorHostProps.aria-colspan

aria-controls?​

optional aria-controls?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2634

Identifies the element (or elements) whose contents or presence are controlled by the current element.

See​

aria-owns.

Inherited from​

CodeEditorHostProps.aria-controls

aria-current?​

optional aria-current?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2636

Indicates the element that represents the current item within a container or set of related elements.

Inherited from​

CodeEditorHostProps.aria-current

aria-describedby?​

optional aria-describedby?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2641

Identifies the element (or elements) that describes the object.

See​

aria-labelledby

Inherited from​

CodeEditorHostProps.aria-describedby

aria-description?​

optional aria-description?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2646

Defines a string value that describes or annotates the current element.

See​

related aria-describedby.

Inherited from​

CodeEditorHostProps.aria-description

aria-details?​

optional aria-details?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2651

Identifies the element that provides a detailed, extended description for the object.

See​

aria-describedby.

Inherited from​

CodeEditorHostProps.aria-details

aria-disabled?​

optional aria-disabled?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2656

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

See​

  • aria-hidden
  • aria-readonly.

Inherited from​

CodeEditorHostProps.aria-disabled

aria-dropeffect?​

optional aria-dropeffect?: "none" | "link" | "copy" | "move" | "execute" | "popup";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2661

Indicates what functions can be performed when a dragged object is released on the drop target.

Deprecated​

in ARIA 1.1

Inherited from​

CodeEditorHostProps.aria-dropeffect

aria-errormessage?​

optional aria-errormessage?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2666

Identifies the element that provides an error message for the object.

See​

  • aria-invalid
  • aria-describedby.

Inherited from​

CodeEditorHostProps.aria-errormessage

aria-expanded?​

optional aria-expanded?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2668

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

Inherited from​

CodeEditorHostProps.aria-expanded

aria-flowto?​

optional aria-flowto?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2673

Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.

Inherited from​

CodeEditorHostProps.aria-flowto

aria-grabbed?​

optional aria-grabbed?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2678

Indicates an element's "grabbed" state in a drag-and-drop operation.

Deprecated​

in ARIA 1.1

Inherited from​

CodeEditorHostProps.aria-grabbed

aria-haspopup?​

optional aria-haspopup?:
| boolean
| "true"
| "false"
| "listbox"
| "grid"
| "menu"
| "dialog"
| "tree";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2680

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

Inherited from​

CodeEditorHostProps.aria-haspopup

aria-hidden?​

optional aria-hidden?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2685

Indicates whether the element is exposed to an accessibility API.

See​

aria-disabled.

Inherited from​

CodeEditorHostProps.aria-hidden

aria-invalid?​

optional aria-invalid?: boolean | "true" | "false" | "grammar" | "spelling";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2690

Indicates the entered value does not conform to the format expected by the application.

See​

aria-errormessage.

Inherited from​

CodeEditorHostProps.aria-invalid

aria-keyshortcuts?​

optional aria-keyshortcuts?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2692

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

Inherited from​

CodeEditorHostProps.aria-keyshortcuts

aria-label?​

optional aria-label?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2697

Defines a string value that labels the current element.

See​

aria-labelledby.

Inherited from​

CodeEditorHostProps.aria-label

aria-labelledby?​

optional aria-labelledby?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2702

Identifies the element (or elements) that labels the current element.

See​

aria-describedby.

Inherited from​

CodeEditorHostProps.aria-labelledby

aria-level?​

optional aria-level?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2704

Defines the hierarchical level of an element within a structure.

Inherited from​

CodeEditorHostProps.aria-level

aria-live?​

optional aria-live?: "off" | "assertive" | "polite";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2706

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

Inherited from​

CodeEditorHostProps.aria-live

aria-modal?​

optional aria-modal?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2708

Indicates whether an element is modal when displayed.

Inherited from​

CodeEditorHostProps.aria-modal

aria-multiline?​

optional aria-multiline?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2710

Indicates whether a text box accepts multiple lines of input or only a single line.

Inherited from​

CodeEditorHostProps.aria-multiline

aria-multiselectable?​

optional aria-multiselectable?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2712

Indicates that the user may select more than one item from the current selectable descendants.

Inherited from​

CodeEditorHostProps.aria-multiselectable

aria-orientation?​

optional aria-orientation?: "horizontal" | "vertical";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2714

Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

Inherited from​

CodeEditorHostProps.aria-orientation

aria-owns?​

optional aria-owns?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2720

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.

See​

aria-controls.

Inherited from​

CodeEditorHostProps.aria-owns

aria-placeholder?​

optional aria-placeholder?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2725

Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.

Inherited from​

CodeEditorHostProps.aria-placeholder

aria-posinset?​

optional aria-posinset?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2730

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

See​

aria-setsize.

Inherited from​

CodeEditorHostProps.aria-posinset

aria-pressed?​

optional aria-pressed?: boolean | "true" | "false" | "mixed";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2735

Indicates the current "pressed" state of toggle buttons.

See​

  • aria-checked
  • aria-selected.

Inherited from​

CodeEditorHostProps.aria-pressed

aria-readonly?​

optional aria-readonly?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2740

Indicates that the element is not editable, but is otherwise operable.

See​

aria-disabled.

Inherited from​

CodeEditorHostProps.aria-readonly

aria-relevant?​

optional aria-relevant?:
| "all"
| "text"
| "additions"
| "additions removals"
| "additions text"
| "removals"
| "removals additions"
| "removals text"
| "text additions"
| "text removals";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2745

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

See​

aria-atomic.

Inherited from​

CodeEditorHostProps.aria-relevant

aria-required?​

optional aria-required?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2758

Indicates that user input is required on the element before a form may be submitted.

Inherited from​

CodeEditorHostProps.aria-required

aria-roledescription?​

optional aria-roledescription?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2760

Defines a human-readable, author-localized description for the role of an element.

Inherited from​

CodeEditorHostProps.aria-roledescription

aria-rowcount?​

optional aria-rowcount?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2765

Defines the total number of rows in a table, grid, or treegrid.

See​

aria-rowindex.

Inherited from​

CodeEditorHostProps.aria-rowcount

aria-rowindex?​

optional aria-rowindex?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2770

Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

See​

  • aria-rowcount
  • aria-rowspan.

Inherited from​

CodeEditorHostProps.aria-rowindex

aria-rowindextext?​

optional aria-rowindextext?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2775

Defines a human readable text alternative of aria-rowindex.

See​

aria-colindextext.

Inherited from​

CodeEditorHostProps.aria-rowindextext

aria-rowspan?​

optional aria-rowspan?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2780

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

See​

  • aria-rowindex
  • aria-colspan.

Inherited from​

CodeEditorHostProps.aria-rowspan

aria-selected?​

optional aria-selected?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2785

Indicates the current "selected" state of various widgets.

See​

  • aria-checked
  • aria-pressed.

Inherited from​

CodeEditorHostProps.aria-selected

aria-setsize?​

optional aria-setsize?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2790

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

See​

aria-posinset.

Inherited from​

CodeEditorHostProps.aria-setsize

aria-sort?​

optional aria-sort?: "none" | "ascending" | "descending" | "other";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2792

Indicates if items in a table or grid are sorted in ascending or descending order.

Inherited from​

CodeEditorHostProps.aria-sort

aria-valuemax?​

optional aria-valuemax?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2794

Defines the maximum allowed value for a range widget.

Inherited from​

CodeEditorHostProps.aria-valuemax

aria-valuemin?​

optional aria-valuemin?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2796

Defines the minimum allowed value for a range widget.

Inherited from​

CodeEditorHostProps.aria-valuemin

aria-valuenow?​

optional aria-valuenow?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2801

Defines the current value for a range widget.

See​

aria-valuetext.

Inherited from​

CodeEditorHostProps.aria-valuenow

aria-valuetext?​

optional aria-valuetext?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2803

Defines the human readable text alternative of aria-valuenow for a range widget.

Inherited from​

CodeEditorHostProps.aria-valuetext

autoCapitalize?​

optional autoCapitalize?:
| string & object
| "none"
| "off"
| "on"
| "sentences"
| "words"
| "characters";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2888

Inherited from​

CodeEditorHostProps.autoCapitalize

autoCorrect?​

optional autoCorrect?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2927

Inherited from​

CodeEditorHostProps.autoCorrect

autoFocus?​

optional autoFocus?: boolean;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:172

挂载后立即聚焦编辑器。

Default Value​

false

Remarks​

仅首次挂载读取,后续变更被忽略。disabled 或 readonly 为真时 不抢焦点,判定用的也是挂载那一刻的值。

Overrides​

CodeEditorHostProps.autoFocus

autoSave?​

optional autoSave?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2928

Inherited from​

CodeEditorHostProps.autoSave

className?​

optional className?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2890

Inherited from​

CodeEditorHostProps.className

color?​

optional color?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2929

Inherited from​

CodeEditorHostProps.color

content?​

optional content?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2915

Inherited from​

CodeEditorHostProps.content

contentEditable?​

optional contentEditable?: "inherit" | Booleanish | "plaintext-only";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2891

Inherited from​

CodeEditorHostProps.contentEditable

contextMenu?​

optional contextMenu?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2892

Inherited from​

CodeEditorHostProps.contextMenu

datatype?​

optional datatype?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2916

Inherited from​

CodeEditorHostProps.datatype

defaultChecked?​

optional defaultChecked?: boolean;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2881

Inherited from​

CodeEditorHostProps.defaultChecked

defaultValue?​

optional defaultValue?: string | number | readonly string[];

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2882

Inherited from​

CodeEditorHostProps.defaultValue

describedBy?​

optional describedBy?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:132

补充说明元素的 id,写成内部 textbox 的 aria-describedby。

Remarks​

落点与 CodeEditorProps.label 相同。


dir?​

optional dir?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2893

Inherited from​

CodeEditorHostProps.dir

disabled?​

optional disabled?: boolean;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:111

禁用:只读且不可编辑,并向辅助技术报告 aria-disabled。

Default Value​

false

Remarks​

与 readonly 是独立的两个属性,任一为真都会让编辑器不可编辑; 区别在于禁用还会写出 aria-disabled 并抑制 autoFocus。


draggable?​

optional draggable?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2894

Inherited from​

CodeEditorHostProps.draggable

enterKeyHint?​

optional enterKeyHint?: "search" | "next" | "enter" | "done" | "go" | "previous" | "send";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2895

Inherited from​

CodeEditorHostProps.enterKeyHint

exportparts?​

optional exportparts?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2962

See​

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts

Inherited from​

CodeEditorHostProps.exportparts

hidden?​

optional hidden?: boolean;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2896

Inherited from​

CodeEditorHostProps.hidden

highlightWhitespace?​

optional highlightWhitespace?: boolean;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:164

显示空白字符。

Default Value​

false

id?​

optional id?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2897

Inherited from​

CodeEditorHostProps.id

indentUnit?​

optional indentUnit?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:152

一级缩进使用的字符串。

Default Value​

' '(两个空格,三端一致)

indentWithTab?​

optional indentWithTab?: boolean;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:146

允许 Tab 键缩进。

Default Value​

false

Remarks​

打开后 Tab 不再移动焦点,键盘用户会被困在编辑器里 —— 这是可达性取舍, 三端默认一致地关闭。


inert?​

optional inert?: boolean;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2948

See​

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert

Inherited from​

CodeEditorHostProps.inert

inlist?​

optional inlist?: any;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2917

Inherited from​

CodeEditorHostProps.inlist

inputMode?​

optional inputMode?:
| "none"
| "search"
| "text"
| "tel"
| "url"
| "email"
| "numeric"
| "decimal";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2953

Hints at the type of data that might be entered by the user while editing the element or its contents

See​

https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

Inherited from​

CodeEditorHostProps.inputMode

is?​

optional is?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2958

Specify that a standard HTML element should behave like a defined custom built-in element

See​

https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

Inherited from​

CodeEditorHostProps.is

itemID?​

optional itemID?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2933

Inherited from​

CodeEditorHostProps.itemID

itemProp?​

optional itemProp?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2930

Inherited from​

CodeEditorHostProps.itemProp

itemRef?​

optional itemRef?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2934

Inherited from​

CodeEditorHostProps.itemRef

itemScope?​

optional itemScope?: boolean;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2931

Inherited from​

CodeEditorHostProps.itemScope

itemType?​

optional itemType?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2932

Inherited from​

CodeEditorHostProps.itemType

label?​

optional label?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:120

可访问名称,写成内部 textbox 的 aria-label。

Remarks​

属性落在 CodeMirror 的 .cm-content 上 —— 承担 role="textbox" 的是它, 不是宿主 div。空串按「未设置」处理。三端同名同义。

与直接透传给宿主的 aria-label 不冲突:那一份留在宿主元素上不动。


labelledBy?​

optional labelledBy?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:126

承担标签的元素 id,写成内部 textbox 的 aria-labelledby。

Remarks​

落点与 CodeEditorProps.label 相同。


lang?​

optional lang?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2898

Inherited from​

CodeEditorHostProps.lang

language?​

optional language?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:85

语法高亮语言名或别名;'' 与 'plaintext' 表示不高亮。

Default Value​

'sql'

languages?​

optional languages?: readonly CodeEditorLanguageDescription[];

Defined in: packages/code-editor-react/src/CodeEditor.tsx:95

候选语言列表;空列表表示不高亮。

Default Value​

SUPPORT_LANGUAGES

Remarks​

传内联字面量(languages={[myLang]})是有成本的:每次渲染都是新数组。 组件按元素身份逐项判等,再按 isSameResolvedLanguage 判断当前语言解析到的 description 是否真的换了 —— 只有真换了才重新 load()。但这两层判断本身仍要跑, 稳定引用(模块级常量或 useMemo)更省。


lineWrapping?​

optional lineWrapping?: boolean;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:158

自动换行。

Default Value​

false

nonce?​

optional nonce?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2899

Inherited from​

CodeEditorHostProps.nonce

onAbort?​

optional onAbort?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2421

Inherited from​

CodeEditorHostProps.onAbort

onAbortCapture?​

optional onAbortCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2422

Inherited from​

CodeEditorHostProps.onAbortCapture

onAnimationEnd?​

optional onAnimationEnd?: AnimationEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2551

Inherited from​

CodeEditorHostProps.onAnimationEnd

onAnimationEndCapture?​

optional onAnimationEndCapture?: AnimationEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2552

Inherited from​

CodeEditorHostProps.onAnimationEndCapture

onAnimationIteration?​

optional onAnimationIteration?: AnimationEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2553

Inherited from​

CodeEditorHostProps.onAnimationIteration

onAnimationIterationCapture?​

optional onAnimationIterationCapture?: AnimationEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2554

Inherited from​

CodeEditorHostProps.onAnimationIterationCapture

onAnimationStart?​

optional onAnimationStart?: AnimationEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2549

Inherited from​

CodeEditorHostProps.onAnimationStart

onAnimationStartCapture?​

optional onAnimationStartCapture?: AnimationEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2550

Inherited from​

CodeEditorHostProps.onAnimationStartCapture

onAuxClick?​

optional onAuxClick?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2467

Inherited from​

CodeEditorHostProps.onAuxClick

onAuxClickCapture?​

optional onAuxClickCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2468

Inherited from​

CodeEditorHostProps.onAuxClickCapture

onBeforeInput?​

optional onBeforeInput?: InputEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2393

Inherited from​

CodeEditorHostProps.onBeforeInput

onBeforeInputCapture?​

optional onBeforeInputCapture?: InputEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2394

Inherited from​

CodeEditorHostProps.onBeforeInputCapture

onBeforeToggle?​

optional onBeforeToggle?: ToggleEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2558

Inherited from​

CodeEditorHostProps.onBeforeToggle

onBlur?​

optional onBlur?: FocusEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2387

Inherited from​

CodeEditorHostProps.onBlur

onBlurCapture?​

optional onBlurCapture?: FocusEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2388

Inherited from​

CodeEditorHostProps.onBlurCapture

onCanPlay?​

optional onCanPlay?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2423

Inherited from​

CodeEditorHostProps.onCanPlay

onCanPlayCapture?​

optional onCanPlayCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2424

Inherited from​

CodeEditorHostProps.onCanPlayCapture

onCanPlayThrough?​

optional onCanPlayThrough?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2425

Inherited from​

CodeEditorHostProps.onCanPlayThrough

onCanPlayThroughCapture?​

optional onCanPlayThroughCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2426

Inherited from​

CodeEditorHostProps.onCanPlayThroughCapture

onChange?​

optional onChange?: (value) => void;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:73

用户编辑导致的内容变化。程序化写入(value 同步)不触发。

Parameters​

ParameterType
valuestring

Returns​

void

Remarks​

回调用 ref 承接,不进 effect 依赖 —— 宿主写内联箭头函数时 每次渲染都是新引用,进依赖就等于每次渲染都重装 update listener。


onChangeCapture?​

optional onChangeCapture?: ChangeEventHandler<HTMLDivElement, Element>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2392

Inherited from​

CodeEditorHostProps.onChangeCapture

onClick?​

optional onClick?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2469

Inherited from​

CodeEditorHostProps.onClick

onClickCapture?​

optional onClickCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2470

Inherited from​

CodeEditorHostProps.onClickCapture

onCompositionEnd?​

optional onCompositionEnd?: CompositionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2377

Inherited from​

CodeEditorHostProps.onCompositionEnd

onCompositionEndCapture?​

optional onCompositionEndCapture?: CompositionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2378

Inherited from​

CodeEditorHostProps.onCompositionEndCapture

onCompositionStart?​

optional onCompositionStart?: CompositionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2379

Inherited from​

CodeEditorHostProps.onCompositionStart

onCompositionStartCapture?​

optional onCompositionStartCapture?: CompositionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2380

Inherited from​

CodeEditorHostProps.onCompositionStartCapture

onCompositionUpdate?​

optional onCompositionUpdate?: CompositionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2381

Inherited from​

CodeEditorHostProps.onCompositionUpdate

onCompositionUpdateCapture?​

optional onCompositionUpdateCapture?: CompositionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2382

Inherited from​

CodeEditorHostProps.onCompositionUpdateCapture

onContextMenu?​

optional onContextMenu?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2471

Inherited from​

CodeEditorHostProps.onContextMenu

onContextMenuCapture?​

optional onContextMenuCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2472

Inherited from​

CodeEditorHostProps.onContextMenuCapture

onCopy?​

optional onCopy?: ClipboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2369

Inherited from​

CodeEditorHostProps.onCopy

onCopyCapture?​

optional onCopyCapture?: ClipboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2370

Inherited from​

CodeEditorHostProps.onCopyCapture

onCut?​

optional onCut?: ClipboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2371

Inherited from​

CodeEditorHostProps.onCut

onCutCapture?​

optional onCutCapture?: ClipboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2372

Inherited from​

CodeEditorHostProps.onCutCapture

onDoubleClick?​

optional onDoubleClick?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2473

Inherited from​

CodeEditorHostProps.onDoubleClick

onDoubleClickCapture?​

optional onDoubleClickCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2474

Inherited from​

CodeEditorHostProps.onDoubleClickCapture

onDrag?​

optional onDrag?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2475

Inherited from​

CodeEditorHostProps.onDrag

onDragCapture?​

optional onDragCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2476

Inherited from​

CodeEditorHostProps.onDragCapture

onDragEnd?​

optional onDragEnd?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2477

Inherited from​

CodeEditorHostProps.onDragEnd

onDragEndCapture?​

optional onDragEndCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2478

Inherited from​

CodeEditorHostProps.onDragEndCapture

onDragEnter?​

optional onDragEnter?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2479

Inherited from​

CodeEditorHostProps.onDragEnter

onDragEnterCapture?​

optional onDragEnterCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2480

Inherited from​

CodeEditorHostProps.onDragEnterCapture

onDragExit?​

optional onDragExit?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2481

Inherited from​

CodeEditorHostProps.onDragExit

onDragExitCapture?​

optional onDragExitCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2482

Inherited from​

CodeEditorHostProps.onDragExitCapture

onDragLeave?​

optional onDragLeave?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2483

Inherited from​

CodeEditorHostProps.onDragLeave

onDragLeaveCapture?​

optional onDragLeaveCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2484

Inherited from​

CodeEditorHostProps.onDragLeaveCapture

onDragOver?​

optional onDragOver?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2485

Inherited from​

CodeEditorHostProps.onDragOver

onDragOverCapture?​

optional onDragOverCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2486

Inherited from​

CodeEditorHostProps.onDragOverCapture

onDragStart?​

optional onDragStart?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2487

Inherited from​

CodeEditorHostProps.onDragStart

onDragStartCapture?​

optional onDragStartCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2488

Inherited from​

CodeEditorHostProps.onDragStartCapture

onDrop?​

optional onDrop?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2489

Inherited from​

CodeEditorHostProps.onDrop

onDropCapture?​

optional onDropCapture?: DragEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2490

Inherited from​

CodeEditorHostProps.onDropCapture

onDurationChange?​

optional onDurationChange?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2427

Inherited from​

CodeEditorHostProps.onDurationChange

onDurationChangeCapture?​

optional onDurationChangeCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2428

Inherited from​

CodeEditorHostProps.onDurationChangeCapture

onEmptied?​

optional onEmptied?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2429

Inherited from​

CodeEditorHostProps.onEmptied

onEmptiedCapture?​

optional onEmptiedCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2430

Inherited from​

CodeEditorHostProps.onEmptiedCapture

onEncrypted?​

optional onEncrypted?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2431

Inherited from​

CodeEditorHostProps.onEncrypted

onEncryptedCapture?​

optional onEncryptedCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2432

Inherited from​

CodeEditorHostProps.onEncryptedCapture

onEnded?​

optional onEnded?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2433

Inherited from​

CodeEditorHostProps.onEnded

onEndedCapture?​

optional onEndedCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2434

Inherited from​

CodeEditorHostProps.onEndedCapture

onError?​

optional onError?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2407

Inherited from​

CodeEditorHostProps.onError

onErrorCapture?​

optional onErrorCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2408

Inherited from​

CodeEditorHostProps.onErrorCapture

onFocus?​

optional onFocus?: FocusEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2385

Inherited from​

CodeEditorHostProps.onFocus

onFocusCapture?​

optional onFocusCapture?: FocusEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2386

Inherited from​

CodeEditorHostProps.onFocusCapture

onGotPointerCapture?​

optional onGotPointerCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2533

Inherited from​

CodeEditorHostProps.onGotPointerCapture

onGotPointerCaptureCapture?​

optional onGotPointerCaptureCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2534

Inherited from​

CodeEditorHostProps.onGotPointerCaptureCapture

onInput?​

optional onInput?: InputEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2395

Inherited from​

CodeEditorHostProps.onInput

onInputCapture?​

optional onInputCapture?: InputEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2396

Inherited from​

CodeEditorHostProps.onInputCapture

onInvalid?​

optional onInvalid?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2401

Inherited from​

CodeEditorHostProps.onInvalid

onInvalidCapture?​

optional onInvalidCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2402

Inherited from​

CodeEditorHostProps.onInvalidCapture

onKeyDown?​

optional onKeyDown?: KeyboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2411

Inherited from​

CodeEditorHostProps.onKeyDown

onKeyDownCapture?​

optional onKeyDownCapture?: KeyboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2412

Inherited from​

CodeEditorHostProps.onKeyDownCapture

onKeyPress?​

optional onKeyPress?: KeyboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2414

Deprecated​

Use onKeyUp or onKeyDown instead

Inherited from​

CodeEditorHostProps.onKeyPress

onKeyPressCapture?​

optional onKeyPressCapture?: KeyboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2416

Deprecated​

Use onKeyUpCapture or onKeyDownCapture instead

Inherited from​

CodeEditorHostProps.onKeyPressCapture

onKeyUp?​

optional onKeyUp?: KeyboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2417

Inherited from​

CodeEditorHostProps.onKeyUp

onKeyUpCapture?​

optional onKeyUpCapture?: KeyboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2418

Inherited from​

CodeEditorHostProps.onKeyUpCapture

onLanguageError?​

optional onLanguageError?: (error) => void;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:191

语言解析或加载失败。

Parameters​

ParameterType
errorCodeEditorLanguageError

Returns​

void

Remarks​

CER-004:这条路径此前只有一条 console.error,宿主完全观测不到 —— 拿不到错误、没有重试或降级的机会,用户只看到高亮突然消失。 降级策略不变(清空语言扩展退回纯文本),日志也保留,本回调是新增的观测通道。 与 Angular 的 aoLanguageError 输出、Vue 的 language-error 事件同载荷。

与 onChange 同样用 ref 承接,不进语言 effect 的依赖。


onLoad?​

optional onLoad?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2405

Inherited from​

CodeEditorHostProps.onLoad

onLoadCapture?​

optional onLoadCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2406

Inherited from​

CodeEditorHostProps.onLoadCapture

onLoadedData?​

optional onLoadedData?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2435

Inherited from​

CodeEditorHostProps.onLoadedData

onLoadedDataCapture?​

optional onLoadedDataCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2436

Inherited from​

CodeEditorHostProps.onLoadedDataCapture

onLoadedMetadata?​

optional onLoadedMetadata?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2437

Inherited from​

CodeEditorHostProps.onLoadedMetadata

onLoadedMetadataCapture?​

optional onLoadedMetadataCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2438

Inherited from​

CodeEditorHostProps.onLoadedMetadataCapture

onLoadStart?​

optional onLoadStart?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2439

Inherited from​

CodeEditorHostProps.onLoadStart

onLoadStartCapture?​

optional onLoadStartCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2440

Inherited from​

CodeEditorHostProps.onLoadStartCapture

onLostPointerCapture?​

optional onLostPointerCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2535

Inherited from​

CodeEditorHostProps.onLostPointerCapture

onLostPointerCaptureCapture?​

optional onLostPointerCaptureCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2536

Inherited from​

CodeEditorHostProps.onLostPointerCaptureCapture

onMouseDown?​

optional onMouseDown?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2491

Inherited from​

CodeEditorHostProps.onMouseDown

onMouseDownCapture?​

optional onMouseDownCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2492

Inherited from​

CodeEditorHostProps.onMouseDownCapture

onMouseEnter?​

optional onMouseEnter?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2493

Inherited from​

CodeEditorHostProps.onMouseEnter

onMouseLeave?​

optional onMouseLeave?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2494

Inherited from​

CodeEditorHostProps.onMouseLeave

onMouseMove?​

optional onMouseMove?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2495

Inherited from​

CodeEditorHostProps.onMouseMove

onMouseMoveCapture?​

optional onMouseMoveCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2496

Inherited from​

CodeEditorHostProps.onMouseMoveCapture

onMouseOut?​

optional onMouseOut?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2497

Inherited from​

CodeEditorHostProps.onMouseOut

onMouseOutCapture?​

optional onMouseOutCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2498

Inherited from​

CodeEditorHostProps.onMouseOutCapture

onMouseOver?​

optional onMouseOver?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2499

Inherited from​

CodeEditorHostProps.onMouseOver

onMouseOverCapture?​

optional onMouseOverCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2500

Inherited from​

CodeEditorHostProps.onMouseOverCapture

onMouseUp?​

optional onMouseUp?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2501

Inherited from​

CodeEditorHostProps.onMouseUp

onMouseUpCapture?​

optional onMouseUpCapture?: MouseEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2502

Inherited from​

CodeEditorHostProps.onMouseUpCapture

onPaste?​

optional onPaste?: ClipboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2373

Inherited from​

CodeEditorHostProps.onPaste

onPasteCapture?​

optional onPasteCapture?: ClipboardEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2374

Inherited from​

CodeEditorHostProps.onPasteCapture

onPause?​

optional onPause?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2441

Inherited from​

CodeEditorHostProps.onPause

onPauseCapture?​

optional onPauseCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2442

Inherited from​

CodeEditorHostProps.onPauseCapture

onPlay?​

optional onPlay?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2443

Inherited from​

CodeEditorHostProps.onPlay

onPlayCapture?​

optional onPlayCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2444

Inherited from​

CodeEditorHostProps.onPlayCapture

onPlaying?​

optional onPlaying?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2445

Inherited from​

CodeEditorHostProps.onPlaying

onPlayingCapture?​

optional onPlayingCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2446

Inherited from​

CodeEditorHostProps.onPlayingCapture

onPointerCancel?​

optional onPointerCancel?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2525

Inherited from​

CodeEditorHostProps.onPointerCancel

onPointerCancelCapture?​

optional onPointerCancelCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2526

Inherited from​

CodeEditorHostProps.onPointerCancelCapture

onPointerDown?​

optional onPointerDown?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2519

Inherited from​

CodeEditorHostProps.onPointerDown

onPointerDownCapture?​

optional onPointerDownCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2520

Inherited from​

CodeEditorHostProps.onPointerDownCapture

onPointerEnter?​

optional onPointerEnter?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2527

Inherited from​

CodeEditorHostProps.onPointerEnter

onPointerLeave?​

optional onPointerLeave?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2528

Inherited from​

CodeEditorHostProps.onPointerLeave

onPointerMove?​

optional onPointerMove?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2521

Inherited from​

CodeEditorHostProps.onPointerMove

onPointerMoveCapture?​

optional onPointerMoveCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2522

Inherited from​

CodeEditorHostProps.onPointerMoveCapture

onPointerOut?​

optional onPointerOut?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2531

Inherited from​

CodeEditorHostProps.onPointerOut

onPointerOutCapture?​

optional onPointerOutCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2532

Inherited from​

CodeEditorHostProps.onPointerOutCapture

onPointerOver?​

optional onPointerOver?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2529

Inherited from​

CodeEditorHostProps.onPointerOver

onPointerOverCapture?​

optional onPointerOverCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2530

Inherited from​

CodeEditorHostProps.onPointerOverCapture

onPointerUp?​

optional onPointerUp?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2523

Inherited from​

CodeEditorHostProps.onPointerUp

onPointerUpCapture?​

optional onPointerUpCapture?: PointerEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2524

Inherited from​

CodeEditorHostProps.onPointerUpCapture

onProgress?​

optional onProgress?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2447

Inherited from​

CodeEditorHostProps.onProgress

onProgressCapture?​

optional onProgressCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2448

Inherited from​

CodeEditorHostProps.onProgressCapture

onRateChange?​

optional onRateChange?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2449

Inherited from​

CodeEditorHostProps.onRateChange

onRateChangeCapture?​

optional onRateChangeCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2450

Inherited from​

CodeEditorHostProps.onRateChangeCapture

onReset?​

optional onReset?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2397

Inherited from​

CodeEditorHostProps.onReset

onResetCapture?​

optional onResetCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2398

Inherited from​

CodeEditorHostProps.onResetCapture

onScroll?​

optional onScroll?: UIEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2539

Inherited from​

CodeEditorHostProps.onScroll

onScrollCapture?​

optional onScrollCapture?: UIEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2540

Inherited from​

CodeEditorHostProps.onScrollCapture

onScrollEnd?​

optional onScrollEnd?: UIEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2541

Inherited from​

CodeEditorHostProps.onScrollEnd

onScrollEndCapture?​

optional onScrollEndCapture?: UIEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2542

Inherited from​

CodeEditorHostProps.onScrollEndCapture

onSeeked?​

optional onSeeked?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2451

Inherited from​

CodeEditorHostProps.onSeeked

onSeekedCapture?​

optional onSeekedCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2452

Inherited from​

CodeEditorHostProps.onSeekedCapture

onSeeking?​

optional onSeeking?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2453

Inherited from​

CodeEditorHostProps.onSeeking

onSeekingCapture?​

optional onSeekingCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2454

Inherited from​

CodeEditorHostProps.onSeekingCapture

onSelect?​

optional onSelect?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2505

Inherited from​

CodeEditorHostProps.onSelect

onSelectCapture?​

optional onSelectCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2506

Inherited from​

CodeEditorHostProps.onSelectCapture

onStalled?​

optional onStalled?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2455

Inherited from​

CodeEditorHostProps.onStalled

onStalledCapture?​

optional onStalledCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2456

Inherited from​

CodeEditorHostProps.onStalledCapture

onSubmit?​

optional onSubmit?: SubmitEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2399

Inherited from​

CodeEditorHostProps.onSubmit

onSubmitCapture?​

optional onSubmitCapture?: SubmitEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2400

Inherited from​

CodeEditorHostProps.onSubmitCapture

onSuspend?​

optional onSuspend?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2457

Inherited from​

CodeEditorHostProps.onSuspend

onSuspendCapture?​

optional onSuspendCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2458

Inherited from​

CodeEditorHostProps.onSuspendCapture

onTimeUpdate?​

optional onTimeUpdate?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2459

Inherited from​

CodeEditorHostProps.onTimeUpdate

onTimeUpdateCapture?​

optional onTimeUpdateCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2460

Inherited from​

CodeEditorHostProps.onTimeUpdateCapture

onToggle?​

optional onToggle?: ToggleEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2557

Inherited from​

CodeEditorHostProps.onToggle

onTouchCancel?​

optional onTouchCancel?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2509

Inherited from​

CodeEditorHostProps.onTouchCancel

onTouchCancelCapture?​

optional onTouchCancelCapture?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2510

Inherited from​

CodeEditorHostProps.onTouchCancelCapture

onTouchEnd?​

optional onTouchEnd?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2511

Inherited from​

CodeEditorHostProps.onTouchEnd

onTouchEndCapture?​

optional onTouchEndCapture?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2512

Inherited from​

CodeEditorHostProps.onTouchEndCapture

onTouchMove?​

optional onTouchMove?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2513

Inherited from​

CodeEditorHostProps.onTouchMove

onTouchMoveCapture?​

optional onTouchMoveCapture?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2514

Inherited from​

CodeEditorHostProps.onTouchMoveCapture

onTouchStart?​

optional onTouchStart?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2515

Inherited from​

CodeEditorHostProps.onTouchStart

onTouchStartCapture?​

optional onTouchStartCapture?: TouchEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2516

Inherited from​

CodeEditorHostProps.onTouchStartCapture

onTransitionCancel?​

optional onTransitionCancel?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2561

Inherited from​

CodeEditorHostProps.onTransitionCancel

onTransitionCancelCapture?​

optional onTransitionCancelCapture?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2562

Inherited from​

CodeEditorHostProps.onTransitionCancelCapture

onTransitionEnd?​

optional onTransitionEnd?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2563

Inherited from​

CodeEditorHostProps.onTransitionEnd

onTransitionEndCapture?​

optional onTransitionEndCapture?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2564

Inherited from​

CodeEditorHostProps.onTransitionEndCapture

onTransitionRun?​

optional onTransitionRun?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2565

Inherited from​

CodeEditorHostProps.onTransitionRun

onTransitionRunCapture?​

optional onTransitionRunCapture?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2566

Inherited from​

CodeEditorHostProps.onTransitionRunCapture

onTransitionStart?​

optional onTransitionStart?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2567

Inherited from​

CodeEditorHostProps.onTransitionStart

onTransitionStartCapture?​

optional onTransitionStartCapture?: TransitionEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2568

Inherited from​

CodeEditorHostProps.onTransitionStartCapture

onVolumeChange?​

optional onVolumeChange?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2461

Inherited from​

CodeEditorHostProps.onVolumeChange

onVolumeChangeCapture?​

optional onVolumeChangeCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2462

Inherited from​

CodeEditorHostProps.onVolumeChangeCapture

onWaiting?​

optional onWaiting?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2463

Inherited from​

CodeEditorHostProps.onWaiting

onWaitingCapture?​

optional onWaitingCapture?: ReactEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2464

Inherited from​

CodeEditorHostProps.onWaitingCapture

onWheel?​

optional onWheel?: WheelEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2545

Inherited from​

CodeEditorHostProps.onWheel

onWheelCapture?​

optional onWheelCapture?: WheelEventHandler<HTMLDivElement>;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2546

Inherited from​

CodeEditorHostProps.onWheelCapture

part?​

optional part?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2966

See​

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part

Inherited from​

CodeEditorHostProps.part

placeholder?​

optional placeholder?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:97

空文档时显示的占位文本。


popover?​

optional popover?: "" | "auto" | "manual" | "hint";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2940

Inherited from​

CodeEditorHostProps.popover

popoverTarget?​

optional popoverTarget?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2942

Inherited from​

CodeEditorHostProps.popoverTarget

popoverTargetAction?​

optional popoverTargetAction?: "hide" | "show" | "toggle";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2941

Inherited from​

CodeEditorHostProps.popoverTargetAction

prefix?​

optional prefix?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2918

Inherited from​

CodeEditorHostProps.prefix

property?​

optional property?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2919

Inherited from​

CodeEditorHostProps.property

radioGroup?​

optional radioGroup?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2908

Inherited from​

CodeEditorHostProps.radioGroup

readonly?​

optional readonly?: boolean;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:103

只读:仍可聚焦、可选择、可复制,但不能改。

Default Value​

false

ref?​

optional ref?: Ref<CodeEditorHandle>;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:56

命令式句柄,见 CodeEditorHandle。


rel?​

optional rel?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2920

Inherited from​

CodeEditorHostProps.rel

resource?​

optional resource?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2921

Inherited from​

CodeEditorHostProps.resource

results?​

optional results?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2935

Inherited from​

CodeEditorHostProps.results

rev?​

optional rev?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2922

Inherited from​

CodeEditorHostProps.rev

role?​

optional role?: AriaRole;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2911

Inherited from​

CodeEditorHostProps.role

root?​

optional root?: Document | ShadowRoot;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:179

CodeMirror 挂载的 DOM 根,用于 Shadow DOM 场景。

Remarks​

仅首次挂载读取 —— CodeMirror 无法在构造后改 root。 需要换 root 时请用 key 强制重建组件。


security?​

optional security?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2936

Inherited from​

CodeEditorHostProps.security

setup?​

optional setup?: CodeEditorSetup;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:138

CodeMirror 预设扩展集;null 表示不加载任何预设。

Default Value​

'basic'

slot?​

optional slot?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2900

Inherited from​

CodeEditorHostProps.slot

spellCheck?​

optional spellCheck?: Booleanish;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2901

Inherited from​

CodeEditorHostProps.spellCheck

style?​

optional style?: CSSProperties;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2902

Inherited from​

CodeEditorHostProps.style

suppressContentEditableWarning?​

optional suppressContentEditableWarning?: boolean;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2883

Inherited from​

CodeEditorHostProps.suppressContentEditableWarning

suppressHydrationWarning?​

optional suppressHydrationWarning?: boolean;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2884

Inherited from​

CodeEditorHostProps.suppressHydrationWarning

tabIndex?​

optional tabIndex?: number;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2903

Inherited from​

CodeEditorHostProps.tabIndex

theme?​

optional theme?: CodeEditorTheme;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:79

主题。

Default Value​

'light'

title?​

optional title?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2904

Inherited from​

CodeEditorHostProps.title

translate?​

optional translate?: "yes" | "no";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2905

Inherited from​

CodeEditorHostProps.translate

typeof?​

optional typeof?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2923

Inherited from​

CodeEditorHostProps.typeof

unselectable?​

optional unselectable?: "off" | "on";

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2937

Inherited from​

CodeEditorHostProps.unselectable

value?​

optional value?: string;

Defined in: packages/code-editor-react/src/CodeEditor.tsx:66

文档内容。

Default Value​

''

Remarks​

不是严格受控:组件不会把用户编辑写回本属性,也不会在每次渲染时 强行拉平文档。本属性变化时只同步公共前后缀之间的那一段差量(见 computeMinimalDocumentChange),光标、选区与滚动位置都保留。 要做受控请把 onChange 的值存进 state 再传回来。


vocab?​

optional vocab?: string;

Defined in: node_modules/.pnpm/@types+react@19.3.0/node_modules/@types/react/index.d.ts:2924

Inherited from​

CodeEditorHostProps.vocab