feat(editor): ⚡️ Remove iframe preview in editor
This commit is contained in:
@@ -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>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user