Big UI fix checkin continued - same bugs as last checkin. r=sfraser

git-svn-id: svn://10.0.0.236/trunk@75959 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
2000-08-10 03:43:09 +00:00
parent ed5327cc88
commit f3cfdd30aa
33 changed files with 1022 additions and 785 deletions

View File

@@ -2761,6 +2761,31 @@ nsEditorShell::InsertSourceWithCharset(const PRUnichar *aSourceToInsert,
return err;
}
NS_IMETHODIMP
nsEditorShell::RebuildDocumentFromSource(const PRUnichar *aSource)
{
nsresult err = NS_NOINTERFACE;
nsAutoString source(aSource);
switch (mEditorType)
{
case ePlainTextEditorType:
case eHTMLTextEditorType:
{
nsCOMPtr<nsIHTMLEditor> htmlEditor = do_QueryInterface(mEditor);
if (htmlEditor)
err = htmlEditor->RebuildDocumentFromSource(source);
}
break;
default:
err = NS_NOINTERFACE;
}
return err;
}
NS_IMETHODIMP
nsEditorShell::InsertBreak()
{