We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93f5134 commit 75adfd5Copy full SHA for 75adfd5
src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/CalloutBlock.tsx
@@ -113,6 +113,16 @@ const CalloutBlockElement = ({
113
handleEmojiSelect,
114
} = useCalloutBlock();
115
116
+ // Temporary: sets a yellow background color to a callout block when added by
117
+ // the user, while keeping the colors menu on the drag handler usable for
118
+ // this custom block.
119
+ useEffect(() => {
120
+ if (!block.content.length && block.props.backgroundColor === 'default') {
121
+ console.log('in if statement');
122
+ editor.updateBlock(block, { props: { backgroundColor: 'yellow' } });
123
+ }
124
+ }, []);
125
+
126
return (
127
<Box
128
$padding="1rem"
0 commit comments