|
@@ -2309,7 +2309,11 @@
|
|
on:submit={async (e) => {
|
|
on:submit={async (e) => {
|
|
if (e.detail) {
|
|
if (e.detail) {
|
|
await tick();
|
|
await tick();
|
|
- submitPrompt(e.detail.replaceAll('\n\n', '\n'));
|
|
|
|
|
|
+ submitPrompt(
|
|
|
|
+ ($settings?.richTextInput ?? true)
|
|
|
|
+ ? e.detail.replaceAll('\n\n', '\n')
|
|
|
|
+ : e.detail
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
@@ -2346,7 +2350,11 @@
|
|
on:submit={async (e) => {
|
|
on:submit={async (e) => {
|
|
if (e.detail) {
|
|
if (e.detail) {
|
|
await tick();
|
|
await tick();
|
|
- submitPrompt(e.detail.replaceAll('\n\n', '\n'));
|
|
|
|
|
|
+ submitPrompt(
|
|
|
|
+ ($settings?.richTextInput ?? true)
|
|
|
|
+ ? e.detail.replaceAll('\n\n', '\n')
|
|
|
|
+ : e.detail
|
|
|
|
+ );
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|