@ctzhian/tiptap 2.1.14 → 2.1.15

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.
@@ -1,8 +1,11 @@
1
1
  import { Box } from '@mui/material';
2
+ import { NodeViewWrapper } from '@tiptap/react';
2
3
  import React from 'react';
3
4
  var ReadonlyIframe = function ReadonlyIframe(_ref) {
4
5
  var attrs = _ref.attrs;
5
- return /*#__PURE__*/React.createElement(Box, {
6
+ return /*#__PURE__*/React.createElement(NodeViewWrapper, {
7
+ className: "iframe-wrapper"
8
+ }, /*#__PURE__*/React.createElement(Box, {
6
9
  sx: {
7
10
  textAlign: attrs.align || undefined
8
11
  }
@@ -18,6 +21,6 @@ var ReadonlyIframe = function ReadonlyIframe(_ref) {
18
21
  },
19
22
  frameBorder: "0",
20
23
  allowFullScreen: true
21
- }));
24
+ })));
22
25
  };
23
26
  export default ReadonlyIframe;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "2.1.14",
3
+ "version": "2.1.15",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",