Skip to content

Commit

Permalink
Add makeUnprivilegedEditor example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
audiolion authored Jun 14, 2018
1 parent 95ca003 commit 9a5984a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,15 @@ class Editor extends React.Component {
}
```

To make an unprivileged editor instance use the ref to pass in the editor:

```jsx
const editor = this.reactQuillRef.getEditor();
const unprivilegedEditor = this.reactQuillRef.makeUnprivilegedEditor(editor);
// You may now use the unprivilegedEditor proxy methods
unprivilegedEditor.getText();
```

</details>

### The unprivileged editor
Expand Down

0 comments on commit 9a5984a

Please sign in to comment.