From ba66393a39231a4e079a1950d2aeadd59bbb3890 Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Sun, 4 Jul 1999 00:34:58 +0000 Subject: [PATCH] SetParagraphFormat() to list item now does someting halfway sane --- editor/base/nsHTMLEditor.cpp | 2 ++ editor/libeditor/html/nsHTMLEditor.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/editor/base/nsHTMLEditor.cpp b/editor/base/nsHTMLEditor.cpp index 2e1f7e894803..2ff9df965fe3 100644 --- a/editor/base/nsHTMLEditor.cpp +++ b/editor/base/nsHTMLEditor.cpp @@ -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); } diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 2e1f7e894803..2ff9df965fe3 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -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); }