diff --git a/editor/ui/dialogs/content/EdSpellCheck.js b/editor/ui/dialogs/content/EdSpellCheck.js index 3c0bef8f482..6c3acd08a10 100644 --- a/editor/ui/dialogs/content/EdSpellCheck.js +++ b/editor/ui/dialogs/content/EdSpellCheck.js @@ -365,9 +365,11 @@ function IgnoreAll() NextWord(); } -function Replace() +function Replace(newWord) { - var newWord = gDialog.ReplaceWordInput.value; + if (!newWord) + return; + if (gMisspelledWord && gMisspelledWord != newWord) { var editor = GetCurrentEditor(); diff --git a/editor/ui/dialogs/content/EdSpellCheck.xul b/editor/ui/dialogs/content/EdSpellCheck.xul index 9f26ac7d80d..1e1576cb499 100644 --- a/editor/ui/dialogs/content/EdSpellCheck.xul +++ b/editor/ui/dialogs/content/EdSpellCheck.xul @@ -76,13 +76,15 @@ - + -