mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
Append text area to body for selection
This commit is contained in:
@@ -417,6 +417,9 @@ export default function PluginConfigPage() {
|
||||
textArea.style.position = 'fixed';
|
||||
textArea.style.left = '-999999px';
|
||||
textArea.style.top = '-999999px';
|
||||
document.body.appendChild(textArea);
|
||||
textArea.select();
|
||||
textArea.setSelectionRange(0, 99999);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user