enh: formatting toolbar for chat

This commit is contained in:
Timothy Jaeryang Baek
2025-08-06 12:21:18 +04:00
parent 0acd78049d
commit bfa42c6277
5 changed files with 256 additions and 211 deletions
@@ -222,7 +222,7 @@
export let editable = true;
export let collaboration = false;
export let showFormattingButtons = true;
export let showFormattingToolbar = true;
export let preserveBreaks = false;
export let generateAutoCompletion: Function = async () => null;
@@ -1003,7 +1003,7 @@
]
: []),
...(showFormattingButtons
...(showFormattingToolbar
? [
BubbleMenu.configure({
element: bubbleMenuElement,
@@ -1316,7 +1316,7 @@
};
</script>
{#if showFormattingButtons}
{#if showFormattingToolbar}
<div bind:this={bubbleMenuElement} id="bubble-menu" class="p-0">
<FormattingButtons {editor} />
</div>