feat: implement command handling and custom rendering in editor and message components
This commit is contained in:
@@ -269,6 +269,13 @@ export function RenderLeaf({ attributes, leaf, children }: RenderLeafProps) {
|
||||
{child}
|
||||
</span>
|
||||
);
|
||||
if (leaf.pendingCommand)
|
||||
child = (
|
||||
<span className={css.Command({ active: true })} {...attributes}>
|
||||
<InlineChromiumBugfix />
|
||||
{child}
|
||||
</span>
|
||||
);
|
||||
|
||||
if (child !== children) return child;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user