On Aug 8, 2:17 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I've used 'MakeWindowEditable' method and I've done some page editing
> > like modifying font style..
>
> OK.  So you modified the DOM.
>
> > And then I saved my document to the local disk
>
> How did you do this?
>
> -Boris

I used these following codes :

                nsEmbedCString fullPath("c:\\test.html");
                nsCOMPtr<nsILocalFile> file;
                rv = NS_NewNativeLocalFile(fullPath, PR_TRUE, 
getter_AddRefs(file));
                if( NS_FAILED(rv) )
                {
                        MLOG_R( _T("Something wrong"), rv );
                }

                //if(bSaveAll)
                //rv = persist->SaveDocument(nsnull, file, nsnull, nsnull, 0, 
0);
                //else
                rv = persist->SaveURI(nsnull, nsnull, nsnull, nsnull, nsnull, 
file);
                if( NS_FAILED(rv) )
                {
                        MLOG_R( _T("Save failed"), rv );
                }

This code can save my document to the local. But it doesn't seem that
save pages correctly.

I mean I can't get the updated(modified) html pages.


- Scott
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to