SetParagraphFormat() to list item now does someting halfway sane

This commit is contained in:
jfrancis%netscape.com 1999-07-04 00:34:58 +00:00
parent 7f29360e21
commit ba66393a39
2 changed files with 4 additions and 0 deletions

View File

@ -319,6 +319,8 @@ NS_IMETHODIMP nsHTMLEditor::SetParagraphFormat(const nsString& aParagraphFormat)
tag.ToLowerCase();
if (tag == "normal" || tag == "p") {
res = RemoveParagraphStyle();
} else if (tag == "li") {
res = InsertList("ul");
} else {
res = ReplaceBlockParent(tag);
}

View File

@ -319,6 +319,8 @@ NS_IMETHODIMP nsHTMLEditor::SetParagraphFormat(const nsString& aParagraphFormat)
tag.ToLowerCase();
if (tag == "normal" || tag == "p") {
res = RemoveParagraphStyle();
} else if (tag == "li") {
res = InsertList("ul");
} else {
res = ReplaceBlockParent(tag);
}