/// <summary>
        /// Executes the modification and calls the ID setter with the ID of the created or modified HTML block.
        /// </summary>
        public void Execute()
        {
            if (htmlBlockId == null)
            {
                htmlBlockId = HtmlBlockStatics.CreateHtmlBlock(Html);
            }
            else
            {
                HtmlBlockStatics.UpdateHtmlBlock(htmlBlockId.Value, Html);
            }

            idSetter(htmlBlockId.Value);
        }
 /// <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))
 {
 }