/// <summary>Handles the Accept_ click event.</summary>
        protected void OnAccept()
        {
            SaveRichTextContentArgs richTextContentArgs = new SaveRichTextContentArgs(this.Request.Form["FieldText"]);

            richTextContentArgs.Content = WebEditUtil.RepairLinks(richTextContentArgs.Content);
            using (new LongRunningOperationWatcher(250, "saveRichTextContent", new string[0]))
                CorePipeline.Run("saveRichTextContent", (PipelineArgs)richTextContentArgs);
            if (!RichTextEditorUrl.Parse(this.Context.Request.RawUrl).ShowInFrameBasedDialog)
            {
                SheerResponse.Eval(string.Format("scRichText.saveRichText({0})", (object)StringUtil.EscapeJavascriptString(richTextContentArgs.Content)));
            }
            else
            {
                SheerResponse.SetDialogValue(richTextContentArgs.Content);
            }
            SheerResponse.Eval("EditorPage.scCloseEditor();");
        }