/// <summary> /// Creates an HTML block editor. /// </summary> /// <param name="htmlBlockId"></param> /// <param name="idSetter"></param> /// <param name="mod"></param> /// <param name="ckEditorConfiguration">Do not pass null.</param> public HtmlBlockEditor(int?htmlBlockId, Action <int> idSetter, out HtmlBlockEditorModification mod, string ckEditorConfiguration = "") { this.ckEditorConfiguration = ckEditorConfiguration; this.mod = mod = new HtmlBlockEditorModification(htmlBlockId, htmlBlockId.HasValue ? HtmlBlockStatics.GetHtml(htmlBlockId.Value) : "", idSetter); }
/// <summary> /// Creates an HTML block placeholder. /// </summary> public HtmlBlockPlaceholder(int htmlBlockId) : this(HtmlBlockStatics.GetHtml(htmlBlockId)) { }