fix: remove unused code

This commit is contained in:
fantasticit 2022-04-03 11:36:09 +08:00
parent d515543444
commit 0a6bed7c7d
1 changed files with 0 additions and 5 deletions

View File

@ -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>