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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user