From 66f3d3d7328ae6824272791cda51a9ed9f74badc Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Thu, 3 Apr 2003 08:05:23 +0000 Subject: [PATCH] require all users of htmleditor to have EditorOverride.css so resizing will work ; bug 196075; r=jfrancis, sr=bryner --- editor/libeditor/html/nsHTMLEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index 16c69353d591..794fb4a67d62 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -339,6 +339,9 @@ NS_IMETHODIMP nsHTMLEditor::Init(nsIDOMDocument *aDoc, mSelectionListenerP = new ResizerSelectionListener(this); if (!mSelectionListenerP) {return NS_ERROR_NULL_POINTER;} + // ignore any errors from this in case the file is missing + AddOverrideStyleSheet(NS_LITERAL_STRING("resource:/res/EditorOverride.css")); + nsCOMPtrselection; result = GetSelection(getter_AddRefs(selection)); if (NS_FAILED(result)) { return result; }