mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 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:
@@ -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",
|
||||
|
||||
@@ -120,6 +120,7 @@ const InputEditor = memo<{ defaultRows?: number }>(({ defaultRows = 2 }) => {
|
||||
className={className}
|
||||
content={''}
|
||||
editor={editor}
|
||||
pasteAsPlainText
|
||||
{...richRenderProps}
|
||||
mentionOption={
|
||||
enableMention
|
||||
|
||||
Reference in New Issue
Block a user