require all users of htmleditor to have EditorOverride.css so resizing will work

; bug 196075; r=jfrancis, sr=bryner
This commit is contained in:
brade%netscape.com 2003-04-03 08:05:23 +00:00
parent 5bfd847646
commit 66f3d3d732

View File

@ -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"));
nsCOMPtr<nsISelection>selection;
result = GetSelection(getter_AddRefs(selection));
if (NS_FAILED(result)) { return result; }