mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-17 01:19:18 +08:00
chore(editor): 更新service plugin 使用方法注释
This commit is contained in:
parent
bb5aa6722f
commit
0fa44da0d4
@ -77,7 +77,7 @@ const doAction = async (
|
|||||||
*
|
*
|
||||||
* editorService.usePlugin({
|
* editorService.usePlugin({
|
||||||
* beforeAdd(value) { return [value] },
|
* beforeAdd(value) { return [value] },
|
||||||
* afterAdd(value, result) {},
|
* afterAdd(result, value) { return result },
|
||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
* editorService.add(); 最终会变成 () => {
|
* editorService.add(); 最终会变成 () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user