diff --git a/README.md b/README.md index 8c371b55..620c7671 100644 --- a/README.md +++ b/README.md @@ -679,7 +679,15 @@ class Editor extends React.Component { } ``` -To make an unprivileged editor instance use the ref to pass in the editor: + + + +`makeUnprivilegedEditor` +: Creates an [unprivileged editor](#unprivileged-editor). Pass this method a reference to the Quill instance from `getEditor`. + + +
+Example ```jsx const editor = this.reactQuillRef.getEditor(); @@ -712,7 +720,6 @@ During events, ReactQuill will make a restricted subset of the Quill API availab `getBounds()` : Returns the pixel position, relative to the editor container, and dimensions, of a selection, at a given location. - ## Building and testing You can run the automated test suite: