I tried just like you say, but the problem is not about the only saving a file.
No Problem with:
İf (I load nothing to editor || The editor is empty)
there is no problem the method Editor1.SaveFile(filename);
it works very well;
My Problem with:
if (I load a content of file to editor || Something was initialized to editor)
I cannot manage to save the file with changes;
The saving process happends but Editor1.XHTML doesn't include the changes;
Editor1.XHTML is the same with initialized form or was loaded from;
Please Help...