hero-editor 1.9.7 → 1.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hero-editor",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "description": "",
5
5
  "main": "dist/lib.js",
6
6
  "scripts": {
package/src/lib.js CHANGED
@@ -58,6 +58,7 @@ const HeroEditor = ({
58
58
  onLayout = noop,
59
59
  wrapperStyle,
60
60
  editableStyle,
61
+ editableProps = {},
61
62
  }) => {
62
63
  const wrapper = useRef(null);
63
64
  const wrapperLayout = useRef({ width: 0, height: 0 });
@@ -120,6 +121,7 @@ const HeroEditor = ({
120
121
  {showToolbar ? <Toolbar>{toolBarButtons}</Toolbar> : null}
121
122
  <div style={styles.editableWrapper}>
122
123
  <Editable
124
+ {...editableProps}
123
125
  className="hero-editor--editable"
124
126
  placeholder={placeholder}
125
127
  spellCheck