mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
revert: Reverts requested
This commit is contained in:
parent
7a80e60785
commit
55d3c07d85
2 changed files with 1 additions and 9 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue