mirror of https://github.com/fantasticit/think.git
fix: remove unused code
This commit is contained in:
parent
d515543444
commit
0a6bed7c7d
|
@ -15,11 +15,6 @@ export const IframeWrapper = ({ editor, node, updateAttributes }) => {
|
||||||
};
|
};
|
||||||
const content = (
|
const content = (
|
||||||
<NodeViewContent as="div" className={cls(styles.wrap, 'render-wrapper')}>
|
<NodeViewContent as="div" className={cls(styles.wrap, 'render-wrapper')}>
|
||||||
{/* {isEditable && (
|
|
||||||
<div className={styles.handlerWrap}>
|
|
||||||
<Input placeholder={'输入外链地址'} value={url} onChange={(url) => updateAttributes({ url })}></Input>
|
|
||||||
</div>
|
|
||||||
)} */}
|
|
||||||
{url ? (
|
{url ? (
|
||||||
<div className={styles.innerWrap} style={{ pointerEvents: !isEditable ? 'auto' : 'none' }}>
|
<div className={styles.innerWrap} style={{ pointerEvents: !isEditable ? 'auto' : 'none' }}>
|
||||||
<iframe src={url}></iframe>
|
<iframe src={url}></iframe>
|
||||||
|
|
Loading…
Reference in New Issue