mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
remove hard-coded string; add a parameter to EditorInsertText
This commit is contained in:
parent
e7366c4bc8
commit
9948bbbe05
@ -334,10 +334,10 @@ function EditorGetHTML()
|
||||
}
|
||||
}
|
||||
|
||||
function EditorInsertText()
|
||||
function EditorInsertText(textToInsert)
|
||||
{
|
||||
if (window.editorShell) {
|
||||
window.editorShell.InsertText("Once more into the breach, dear friends.\n");
|
||||
window.editorShell.InsertText(textToInsert);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user