From 9a5984a110246039e702237ee1955526a0cb76c6 Mon Sep 17 00:00:00 2001 From: Ryan Castner Date: Thu, 14 Jun 2018 16:15:08 -0400 Subject: [PATCH] Add makeUnprivilegedEditor example to README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 91301b75..8c371b55 100644 --- a/README.md +++ b/README.md @@ -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(); +``` + ### The unprivileged editor