Display thread title
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="relative z-feature mx-2 rounded-xl pt-4">
|
||||
<div class="relative z-feature mx-2 rounded-xl pt-4 {$$props.class}">
|
||||
<div
|
||||
class="flex min-h-12 items-center justify-between gap-4 rounded-xl bg-base-100 px-4 shadow-xl">
|
||||
<div class="flex items-center gap-4">
|
||||
|
||||
@@ -65,7 +65,7 @@ export const getModifiedHardBreakExtension = () =>
|
||||
"Shift-Enter": () => this.editor.commands.setHardBreak(),
|
||||
"Mod-Enter": () => this.editor.commands.setHardBreak(),
|
||||
Enter: () => {
|
||||
if (this.editor.getText().trim()) {
|
||||
if (this.editor.getText({blockSeparator: '\n'}).trim()) {
|
||||
uploadFiles(this.editor)
|
||||
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user