EditableDocument Class
Intermediate document, that contains content before and after editing
Inheritance Hierarchy
SystemObject
  GroupDocs.EditorEditableDocument

Namespace: GroupDocs.Editor
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 22.7.0.0
Syntax
public sealed class EditableDocument : IAuxDisposable

The EditableDocument type exposes the following members.

Properties
  NameDescription
Public propertyAllResources
Returns a list of all existing resources: all stylesheets, images from HTML and all stylesheets, fonts
Public propertyAudio
Returns a list of audio resources
Public propertyCss
Returns a list of CSS resources
Public propertyFonts
Allows to obtain external font resources, which are used by this HTML document
Public propertyImages
Allows to obtain external image resources (raster images), which are used by this HTML document
Public propertyIsDisposed
Determines whether this Editable document was already disposed (true) or not (false)
Methods
  NameDescription
Public methodDispose
Disposes this Editable document instance, disposing its content and making its methods and properties non-working
Public methodStatic memberFromBodyMarkupAndResourceFolder
Static factory, that creates an instance of EditableDocument from a specified HTML markup, that doesn't contain an HTML header, but only inner markup of HTML BODY element, and from resources, located in the folder, specified by the full path
Public methodStatic memberFromFile
Static factory, that creates an instance of EditableDocument from a HTML file, that is specified by a path to the *.html file itself and a folder with linked resources
Public methodStatic memberFromMarkup
Static factory, that creates an instance of EditableDocument from specified HTML markup and a set of corresponding linked resources
Public methodStatic memberFromMarkupAndResourceFolder
Static factory, that creates an instance of EditableDocument from a specified HTML markup and from resources, located in the folder, specified by the full path
Public methodGetBodyContent
Returns a body of the HTML document (content between opening and closing BODY tags without these tags) as a string.
Public methodGetBodyContent(String)
Returns a body of the HTML document (content between opening and closing BODY tags without these tags) as a string, where links to the external resources contain specified prefix.
Public methodGetContent
Returns overall content of the HTML document as a string.
Public methodGetContent(String, String)
Returns overall content of the HTML document as a string, where links to the external resources contain specified prefix.
Public methodGetCssContent
Returns content of all external stylesheets as a list of strings, where one string represents one stylesheet. Returns empty list, if there is no CSS for this document.
Public methodGetCssContent(String, String)
Returns content of all external stylesheets as a list of strings, where one string represents one stylesheet. Specified prefix will be applied to every link to the external resource in every resultant stylesheet. Returns empty list, if there is no CSS for this document.
Public methodGetEmbeddedHtml
Returns all content of this HTML document with all related resources in a form of a single string, where all resources are embedded inside the HTML markup in a base64-encoded form.
Public methodSave(String)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources.
Public methodSave(String, String)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources, which is located on specified path.
Events
  NameDescription
Public eventDisposed
Event, which occurs when this Editable document is disposed, right after finishing the disposing process
Remarks
Instance of EditableDocument class can be produced by the 'Edit' method or created by the user himself using static factories. EditableDocument internally stores document in its own closed format, which is compatible (convertible) with all import and export formats, that GroupDocs.Editor supports. In order to make document editable in any WYSIWYG client-side editor (like CKEditor or TinyMCE), EditableDocument provides methods for generating HTML markup and producing resources, that can be accepted by the user.
See Also