Description
The Html
property of the Editor.DragData
class provides access to the HTML data associated with a drag and drop event, if any is available. This property is useful when you need to handle or process HTML content that is being dragged within the editor environment.
Usage
To access the HTML data from a drag and drop event, you can use the Html
property of an instance of Editor.DragData
. This property returns a string
containing the HTML content.
Example
// Example of accessing the Html property from a DragData instance
Editor.DragData dragData = GetDragData(); // Assume this method retrieves the current drag data
string htmlContent = dragData.Html;
if (!string.IsNullOrEmpty(htmlContent))
{
// Process the HTML content
ProcessHtmlContent(htmlContent);
}