Skip to content

Commit

Permalink
chore: update plugin usage
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisyip committed Feb 19, 2020
1 parent 6a5fadf commit 285a31f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,17 @@ class Editor extends React.Component {

editorOptions: {
plugins: {
// 仅启用工具栏插件
// 以默认选项启用工具栏插件
Toolbar: true,

// 自定义插件选项
Collaborator: {
// 自定义选项
// avatarTrack: true
// ...
},

// 停用其他插件
Collaborator: false,
Collaboration: false,
Comment: false,
DemoScreen: false,
Expand All @@ -165,6 +171,9 @@ class Editor extends React.Component {
})
cabinet.render().then(() => {
console.log('Editor is ready!')

// 访问插件,如启动文档演示模式
cabinet.document.plugins.demoScreen.show()
})
}

Expand Down

0 comments on commit 285a31f

Please sign in to comment.