Don't pass "null" strings in from JavaScript.

git-svn-id: svn://10.0.0.236/trunk@35502 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com 1999-06-15 23:25:18 +00:00
parent e12a8361e4
commit 47b1e6f67f

View File

@ -252,13 +252,13 @@ function EditorSetBackgroundColor(color)
function EditorApplyStyle(styleName)
{
dump("applying style\n");
window.editorShell.SetTextProperty(styleName, null, null);
window.editorShell.SetTextProperty(styleName, "", "");
contentWindow.focus();
}
function EditorRemoveStyle(styleName)
{
window.editorShell.RemoveTextProperty(styleName, null);
window.editorShell.RemoveTextProperty(styleName, "");
contentWindow.focus();
}