示例#1
0
        public void Paste()
        {
            var e = new PastingEventArgs();

            Pasting?.Invoke(this, e);
            if (!e.Handled)
            {
                Document.ExecCommand("Paste", false, null);
                ExternalContentAdded?.Invoke(this);
            }
        }
示例#2
0
 /// <summary>
 /// This makes the editor dirty as opposed to setting HTML property
 /// </summary>
 /// <param name="html"></param>
 public void UpdateHtmlSource(string html)
 {
     Document.Body.InnerHtml = html;
     ExternalContentAdded?.Invoke(this);
 }