2
0

feat(editor): ️ Remove iframe preview in editor

This commit is contained in:
Baptiste Arnaud
2022-06-21 12:07:03 +02:00
parent 6938533126
commit a9e8b3e2aa

View File

@@ -1,20 +1,7 @@
import { Box, Text } from '@chakra-ui/react' import { Text } from '@chakra-ui/react'
import { EmbedBubbleBlock } from 'models' import { EmbedBubbleBlock } from 'models'
export const EmbedBubbleContent = ({ block }: { block: EmbedBubbleBlock }) => { export const EmbedBubbleContent = ({ block }: { block: EmbedBubbleBlock }) => {
if (!block.content?.url) return <Text color="gray.500">Click to edit...</Text> if (!block.content?.url) return <Text color="gray.500">Click to edit...</Text>
return ( return <Text>Show embed</Text>
<Box w="full" h="120px" pos="relative">
<iframe
id="embed-bubble-content"
src={block.content.url}
style={{
width: '100%',
height: '100%',
pointerEvents: 'none',
borderRadius: '5px',
}}
/>
</Box>
)
} }