mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
SetParagraphFormat() to list item now does someting halfway sane
This commit is contained in:
parent
7f29360e21
commit
ba66393a39
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user