зеркало из https://github.com/mozilla/gecko-dev.git
30 строки
769 B
HTML
30 строки
769 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<script type="text/javascript">
|
|
function load()
|
|
{
|
|
let textarea = document.getElementById("editor");
|
|
textarea.focus();
|
|
|
|
const { maybeOnSpellCheck } = SpecialPowers.ChromeUtils.importESModule(
|
|
"resource://reftest/AsyncSpellCheckTestHelper.sys.mjs"
|
|
);
|
|
maybeOnSpellCheck(textarea, () => {
|
|
let isc = SpecialPowers.wrap(textarea).editor.getInlineSpellChecker(false);
|
|
let sc = isc.spellChecker;
|
|
|
|
textarea.setAttribute("lang", "en-US");
|
|
sc.UpdateCurrentDictionary(() => {
|
|
document.documentElement.classList.remove("reftest-wait");
|
|
});
|
|
sc.UninitSpellChecker();
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="load()">
|
|
<textarea id="editor" spellchecker="true">ABC</textarea>
|
|
</body>
|
|
</html>
|