mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
358 lines
3.5 KiB
Markdown
358 lines
3.5 KiB
Markdown
# codeBlockService方法
|
||
|
||
|
||
|
||
## setCodeDsl
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCodeDsl
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCodeDslSync
|
||
|
||
## getCodeContentById
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setCodeDslById
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCodeDslByIds
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setCodeEditorShowStatus
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCodeEditorShowStatus
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setCodeEditorContent
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCurrentDsl
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getEditStatus
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
## setEditStatus
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setId
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getId
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getMode
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setMode
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setCombineIds
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCombineIds
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## refreshCombineInfo
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCombineInfo
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getUndeletableList
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setUndeleteableList
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## setCodeDraft
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getCodeDraft
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## removeCodeDraft
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## deleteCodeDslByIds
|
||
|
||
- **[扩展支持](../../guide/editor-expand#行为扩展):** 是
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## getUniqueId
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## deleteCompsInRelation
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|
||
|
||
## destroy
|
||
|
||
- **参数:**
|
||
|
||
-
|
||
|
||
- **返回:**
|
||
|
||
- `{Promise<void>}`
|
||
|
||
- **详情:**
|