mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 03:17:46 +01:00
revert: Reverts requested
This commit is contained in:
@@ -283,7 +283,7 @@
|
||||
|
||||
if (chatInput) {
|
||||
if ($settings?.richTextInput ?? true) {
|
||||
word = getWordAtDocPosFromRichText();
|
||||
word = chatInputElement?.getWordAtDocPos();
|
||||
} else {
|
||||
const cursor = chatInput ? chatInput.selectionStart : prompt.length;
|
||||
word = getWordAtCursor(prompt, cursor);
|
||||
@@ -384,8 +384,6 @@
|
||||
let chatInputContainerElement;
|
||||
let chatInputElement;
|
||||
|
||||
let getWordAtDocPosFromRichText = () => '';
|
||||
|
||||
let filesInputElement;
|
||||
let commandsElement;
|
||||
|
||||
@@ -1094,9 +1092,6 @@
|
||||
prompt = e.md;
|
||||
command = getCommand();
|
||||
}}
|
||||
getWordAtDocPosCallback={(func) => {
|
||||
getWordAtDocPosFromRichText = func;
|
||||
}}
|
||||
json={true}
|
||||
messageInput={true}
|
||||
showFormattingButtons={false}
|
||||
|
||||
@@ -168,7 +168,6 @@
|
||||
});
|
||||
};
|
||||
|
||||
export let getWordAtDocPosCallback = (func) => {};
|
||||
export let onSelectionUpdate = (e) => {};
|
||||
|
||||
export let id = '';
|
||||
@@ -1209,8 +1208,6 @@
|
||||
if (messageInput) {
|
||||
selectTemplate();
|
||||
}
|
||||
|
||||
getWordAtDocPosCallback(getWordAtDocPos);
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
|
||||
Reference in New Issue
Block a user