Append text area to body for selection

This commit is contained in:
Typer_Body
2026-01-25 01:37:41 +08:00
committed by GitHub
parent 77047e87d6
commit a8f7924867

View File

@@ -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);
}
};