🐛 fix: force plain text paste in ChatInput editor (#11414)

- Add pasteAsPlainText prop to ChatInput Editor to prevent rich text paste
- Upgrade @lobehub/editor to ^3.11.0 to support the new feature

Closes LOBE-2657
This commit is contained in:
Innei
2026-01-11 17:01:59 +08:00
committed by GitHub
parent c495a656b5
commit 70daf1355d
2 changed files with 2 additions and 1 deletions

View File

@@ -202,7 +202,7 @@
"@lobehub/chat-plugin-sdk": "^1.32.4",
"@lobehub/chat-plugins-gateway": "^1.9.0",
"@lobehub/desktop-ipc-typings": "workspace:*",
"@lobehub/editor": "^3.8.0",
"@lobehub/editor": "^3.11.0",
"@lobehub/icons": "^4.0.2",
"@lobehub/market-sdk": "0.28.1",
"@lobehub/tts": "^4.0.2",

View File

@@ -120,6 +120,7 @@ const InputEditor = memo<{ defaultRows?: number }>(({ defaultRows = 2 }) => {
className={className}
content={''}
editor={editor}
pasteAsPlainText
{...richRenderProps}
mentionOption={
enableMention