@vonaffenfels/slate-editor 1.1.56 → 1.1.60
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 +2 -2
- package/src/BlockEditor.js +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/slate-editor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.60",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"cssnano": "^5.0.1",
|
|
73
73
|
"escape-html": "^1.0.3"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "bf2b6e33737a0ebe24e02368b7b218a218b39a51",
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
}
|
package/src/BlockEditor.js
CHANGED
|
@@ -97,12 +97,6 @@ export default function BlockEditor({
|
|
|
97
97
|
loadStories();
|
|
98
98
|
}, []);
|
|
99
99
|
|
|
100
|
-
const resetEditor = () => {
|
|
101
|
-
if (confirm("This action will delete all data in the editor, are you sure?")) {
|
|
102
|
-
onChange(emptyValue);
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
|
|
106
100
|
const fixValue = (newValue) => {
|
|
107
101
|
const fixedValue = [...(newValue || [])];
|
|
108
102
|
|