diff --git a/README.md b/README.md index 4c1b0e437..087a9c3c5 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,9 @@ function Editor() { throw error; }, []) - // Some placeholder text to be used when the editor - // field is empty. - const placeholderText = 'Enter some plain text...'; - // Create an Outline editor instance and also a ref // that we need to pass to our content editable. - const [editor, contentEditableRef] = useOutlineEditor( - placeholderText, + const [editor, contentEditableRef, showPlaceholder] = useOutlineEditor( onError, ); @@ -47,21 +42,26 @@ function Editor() { // Our