You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When integrate the plugin with `draft-js-side-toolbar-plugin` and click the Embed button, it will display a plceholder where you can paste the URL.
40
-
Pressing Enter will close and embed the URL; but, losing the focus, pressing ESC or DEL with empty text will close the Embedder.
39
+
When integrating the plugin with `draft-js-side-toolbar-plugin` and clicking the Embed button, it will display a plceholder where you can paste the URL.
40
+
Pressing Enter will close and embed the URL; but, lose the focus on the editor, pressing ESC or DEL with empty text will close the Embedder.
41
41
42
42
## Configuration
43
43
| Param | Default | Description |
@@ -54,8 +54,8 @@ Pressing Enter will close and embed the URL; but, losing the focus, pressing ESC
| placehoder | 'Paste a link to embed content and press Enter' | Text as placeholder for the Embedder. |
57
-
| handleOnReturn | true | Embed the text when press Enter if it is a URL. |
58
-
| handleOnPaste | false | Embed the text pasted if it is a URL. |
57
+
| handleOnReturn | true | Embed the text when pressing Enter if it is a URL. |
58
+
| handleOnPaste | false | Embed the pasted text if it is a URL. |
59
59
| params |``` { iframe: 1 rel: 'summary', omit_script: true, align: 'center', html5: 1 } ```| Params to pass in the request. https://iframely.com/docs/parameters|
60
60
| onRequest |`return (await fetch(url)).json()`| Function to request the metadata of the URL. It will receive the URL to request and MUST return a JSON, contaning the key 'html'. |
61
61
@@ -64,7 +64,7 @@ The plugin ships with a default styling available at this location in the instal
64
64
65
65
*Webpack Usage*
66
66
1. Install Webpack loaders: `npm i style-loader css-loader --save-dev`
67
-
2. Add the below section to Webpack config (if your config already has a loaders array, simply add the below loader object to your existing list.
67
+
2. Add the below section to Webpack config (if your config already has a loaders array, simply add the below loader object to your existing list).
0 commit comments