@flozy/editor 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CommonEditor.js +3 -15
- package/package.json +1 -1
@@ -198,12 +198,6 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
198
198
|
...partialState
|
199
199
|
}));
|
200
200
|
};
|
201
|
-
const handleChangeViewport = (w, h) => () => {
|
202
|
-
setViewport({
|
203
|
-
w,
|
204
|
-
h
|
205
|
-
});
|
206
|
-
};
|
207
201
|
const onKeyDown = useCallback(event => {
|
208
202
|
const isMetaKey = event.metaKey && event.keyCode >= 65 && event.keyCode <= 90;
|
209
203
|
const isCtrlKey = event.ctrlKey || isMetaKey;
|
@@ -227,7 +221,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
227
221
|
return /*#__PURE__*/_jsx(DialogWrapper, {
|
228
222
|
...props,
|
229
223
|
fullScreen: fullScreen,
|
230
|
-
children: /*#__PURE__*/
|
224
|
+
children: /*#__PURE__*/_jsx("div", {
|
231
225
|
className: "editor-t-wrapper",
|
232
226
|
style: {
|
233
227
|
display: "flex",
|
@@ -238,13 +232,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
238
232
|
backgroundSize: "40px 40px",
|
239
233
|
backgroundPosition: "-19px -19px"
|
240
234
|
},
|
241
|
-
children:
|
242
|
-
onClick: handleChangeViewport(414, 736),
|
243
|
-
children: "414 x 736"
|
244
|
-
}), /*#__PURE__*/_jsx(Button, {
|
245
|
-
onClick: handleChangeViewport(375, 812),
|
246
|
-
children: " 375 x 812"
|
247
|
-
}), /*#__PURE__*/_jsxs(Slate, {
|
235
|
+
children: /*#__PURE__*/_jsxs(Slate, {
|
248
236
|
editor: editor,
|
249
237
|
initialValue: value,
|
250
238
|
onChange: handleEditorChange,
|
@@ -287,7 +275,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
287
275
|
...htmlAction,
|
288
276
|
handleCodeToText: handleCodeToText
|
289
277
|
})]
|
290
|
-
}, id)
|
278
|
+
}, id)
|
291
279
|
})
|
292
280
|
});
|
293
281
|
});
|