protected override void OnInit( EventArgs e )
{
base.OnInit( e );
this.TextMode = TextBoxMode.MultiLine;
if ( this.Visible && !ScriptManager.GetCurrent( this.Page ).IsInAsyncPostBack )
{
// if the codeeditor is .Visible and this isn't an Async, add ace.js to the page (If the codeeditor is made visible during an Async Post, RenderBaseControl will take care of adding ace.js)
RockPage.AddScriptLink( Page, ResolveUrl( "~/Scripts/ace/ace.js" ) );
}
}