From 31246e41ef715c89d6cc84b191619bb5cbfba94c Mon Sep 17 00:00:00 2001 From: Etienne Lemay Date: Fri, 2 Mar 2018 14:15:49 -0500 Subject: [PATCH] Add `contentEditable` guide to README [Close #169] --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index f471116..bc3099a 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,24 @@ The Emoji component being a [functional component](https://medium.com/missive-ap }}> ``` +#### Using with `contentEditable` +Following the `dangerouslySetInnerHTML` example above, make sure the wrapping `span` sets `contenteditable="false"`. + +```js +
+ Looks good to me + + +
+``` + ## Custom emojis You can provide custom emojis which will show up in their own category.