**【注意】该组件已不推荐使用，请使用新的 [MonacoEditor](/component/monacoeditor) 组件代替。**

---

# CodeEditor 代码输入

基于微软 [MonacoEditor](https://microsoft.github.io/monaco-editor/index.html) 封装的 iframe 版本代码编辑器。

## 🚨 不推荐使用

- 腾讯云控制台环境下建议使用新的 [MonacoEditor](/component/monacoeditor) 组件

- 非控制台环境下建议直接使用原生 [MonacoEditor](https://microsoft.github.io/monaco-editor/index.html) 编辑器

## 使用示例

### 基本用法

CodeEditor 不是受控组件，需要你使用 API 来获取/修改内容。

[Example: CodeEditorExample](./_example/CodeEditorExample.jsx)

## 组件属性

[Interface: CodeEditorProps](./CodeEditor.tsx)
