Skip to content

Add plugin function transaction #9172

@frostime

Description

@frostime

In what scenarios do you need this feature?

protyle 下的编辑器绑定了 input 事件,在前端触发 input 的时候可以提醒后端更新数据。

在插件代码中也可以模拟这一操作,这样就可以在只更改前端的文本而不需要向后端发请求的情况下就更改思源的数据。

image

我感觉这个操作对插件开发挺便利的,建议把自定义触发 input 事件作为一个 protyle 的接口开发给插件系统。

image

Describe the optimal solution

添加 API

@Vanessa219

Describe the candidate solution

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions