1
0
mirror of synced 2026-03-24 03:38:34 +08:00

chore(editor): codeDsl由codeBlockService维护,不再从editorService中获取,删除editorService中相关api

This commit is contained in:
roymondchen
2023-03-23 16:42:36 +08:00
parent 36c4ffa02e
commit fa89af920c
8 changed files with 29 additions and 109 deletions

View File

@@ -4,8 +4,6 @@
## setCodeDsl
- **[扩展支持](../../guide/editor-expand#行为扩展)** 是
- **参数:**
-
@@ -18,8 +16,6 @@
## getCodeDsl
- **[扩展支持](../../guide/editor-expand#行为扩展)** 是
- **参数:**
-
@@ -30,8 +26,6 @@
- **详情:**
## getCodeDslSync
## getCodeContentById
- **[扩展支持](../../guide/editor-expand#行为扩展)** 是

View File

@@ -587,44 +587,6 @@ alignCenter可以支持一次水平居中多个组件alignCenter是通过调
重置当前记录的修改过的节点id记录通常用于保存之后
## getCodeDsl
- **[扩展支持](../../guide/editor-expand#行为扩展)** 是
- **返回:**
- {Promise<[CodeBlockDSL](https://github.com/Tencent/tmagic-editor/blob/c143a5f7670ae61d80c1a2cfcc780cfb5259849d/packages/schema/src/index.ts#L75) | null>}
- **详情:**
从dsl中的codeBlocks字段读取活动的代码块
## getCodeDslSync
- **返回:**
- [CodeBlockDSL](https://github.com/Tencent/tmagic-editor/blob/c143a5f7670ae61d80c1a2cfcc780cfb5259849d/packages/schema/src/index.ts#L75) | null
- **详情:**
从dsl中的codeBlocks字段读取活动的代码块
## setCodeDsl
- **[扩展支持](../../guide/editor-expand#行为扩展)** 是
- **参数:**
- {[CodeBlockDSL](https://github.com/Tencent/tmagic-editor/blob/c143a5f7670ae61d80c1a2cfcc780cfb5259849d/packages/schema/src/index.ts#L75)} CodeBlockDSL
- **返回:**
- `{Promise<void>}`
- **详情:**
设置代码块到dsl的codeBlocks字段
## resetState
- **详情:**