[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.ReplaceElementAsync

ReplaceElementAsync Method

ReplaceElementAsync(string, string, string, string)

Replaces the found elements with the specified HTML fragment asynchronously.

Declaration
public Task ReplaceElementAsync(string replaceWith, string elementId, string elementTag = null, string elementClass = null)
Parameters
Type Name Description
string replaceWith

HTML fragment to replace with.

string elementId

The ID of the element to be replaced.

string elementTag

The Tag name of the elements to be replaced.

string elementClass

The class name of the elements to be replaced.

Returns
Type Description
Task