Rock.Web.UI.Controls.HtmlEditor.CreateChildControls C# (CSharp) Method

CreateChildControls() protected method

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
return void
        protected override void CreateChildControls()
        {
            base.CreateChildControls();
            Controls.Clear();
            RockControlHelper.CreateChildControls( this, Controls );

            _hfDisableVrm = new HiddenField();
            _hfDisableVrm.ID = this.ID + "_dvrm";
            _hfDisableVrm.Value = "True";
            Controls.Add( _hfDisableVrm );

            _hfInCodeEditorMode = new HiddenFieldWithClass();
            _hfInCodeEditorMode.CssClass = "js-incodeeditormode";
            _hfInCodeEditorMode.ID = this.ID + "_hfInCodeEditorMode";
            Controls.Add( _hfInCodeEditorMode );

            _ceEditor = new CodeEditor();
            _ceEditor.ID = this.ID + "_codeEditor";
            _ceEditor.EditorMode = CodeEditorMode.Html;
            Controls.Add( _ceEditor );
        }