Пример #1
0
 protected void Page_Init(object sender, System.EventArgs e)
 {
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
         ctlEditor.ID = "content_teaser";
         ctlEditor.AllowScripts = true;
         ctlEditor.Height = new Unit(200, UnitType.Pixel);
         ctlEditor.Width = new Unit(100, UnitType.Percentage);
         ctlEditor.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.Minimal;
         ctlEditor.AllowFonts = true;
         ctlEditor.ShowHtmlMode = false;
         EditSummaryHtml.Controls.Add(ctlEditor);
 }
Пример #2
0
 protected void Page_Init(object sender, System.EventArgs e)
 {
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("Controls/Editor/ContentDesignerWithValidator.ascx");
     ltr_sig.Controls.Add(ctlEditor);
     ctlEditor.ID = "commenttext";
     ctlEditor.AllowScripts = false;
     ctlEditor.Height = new Unit(300, UnitType.Pixel);
     ctlEditor.Width = new Unit(100, UnitType.Percentage);
     ctlEditor.Stylesheet = m_siteRef.AppPath + "csslib/ewebeditprostyles.css";
     ctlEditor.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.Minimal;
     ctlEditor.AllowFonts = true;
     ctlEditor.ShowHtmlMode = false;
 }
 protected void Page_Init(object sender, System.EventArgs e)
 {
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("../controls/Editor/ContentDesignerWithValidator.ascx");
         ctlEditor.ID = "ekImagegalleryDescription";
         ctlEditor.AllowScripts = false;
         ctlEditor.Height = new Unit(250, UnitType.Pixel);
         ctlEditor.Width = new Unit(100, UnitType.Percentage);
         ctlEditor.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.Minimal;
         ctlEditor.ShowHtmlMode = false;
         ekImagegalleryDescriptionEditorHolder.Controls.Add(ctlEditor);
 }
Пример #4
0
 protected void Page_Init(object sender, System.EventArgs e)
 {
     ContentLanguage = m_refSiteApi.ContentLanguage;
         ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("../Editor/ContentDesignerWithValidator.ascx");
         ltr_sig.Controls.Add(ctlEditor);
         ctlEditor.ID = "content_html";
         ctlEditor.AllowScripts = false;
         ctlEditor.Height = new Unit(200, UnitType.Pixel);
         ctlEditor.Width = new Unit(570, UnitType.Pixel);
         ctlEditor.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.Minimal;
         ctlEditor.AllowFonts = true;
         ctlEditor.ShowHtmlMode = false;
 }
Пример #5
0
    private void Page_Init(System.Object sender, System.EventArgs e)
    {
        char[] endSlash = new char[] { '/' };
        this.ApplicationPath = m_refContentApi.ApplicationPath.TrimEnd(endSlash.ToString().ToCharArray());
        this.SitePath = m_refContentApi.SitePath.TrimEnd(endSlash.ToString().ToCharArray());
        if ((Request.QueryString["thickbox"] != null) && Request.QueryString["thickbox"] == "true")
        {
            usesModal = true;
        }

        //Register Page Components
        this.RegisterCSS();
        this.RegisterJS();
        _EkContentRef = new EkContent(_cApi.RequestInformationRef);

        _Editor = (ContentDesignerWithValidator)LoadControl(m_refContentApi.ApplicationPath + "controls/Editor/ContentDesignerWithValidator.ascx");
        _Editor.Width = System.Web.UI.WebControls.Unit.Pixel(750);
        _Editor.Visible = false;
        _Editor.ID = "content_html";
        pnlTerms.Controls.Add(_Editor);
        ((Ektron.ContentDesignerWithValidator)(pnlTerms.Controls[0])).ToolsFile = m_refContentApi.ApplicationPath + "ContentDesigner/configurations/InterfaceBlog.aspx?Translate=False&EmoticonSelect=1&WMV=1";
    }
Пример #6
0
 protected void Page_Init(System.Object sender, System.EventArgs e)
 {
     EnableMultilingual = AppUI.EnableMultilingual;
     cContObj = new EkContent(m_refContentApi.RequestInformationRef);
     objTask = new EkTask(m_refContentApi.RequestInformationRef);
     MsgHelper = new EkMessageHelper(m_refContentApi.RequestInformationRef);
     objTaskType = new Ektron.Cms.Content.EkTaskType(m_refContentApi.RequestInformationRef);
     usrObj = new Ektron.Cms.User.EkUser(m_refContentApi.RequestInformationRef);
     GenerateJS();
     ltrStyleHelper.Text = m_refStyle.GetClientScript();
     ltrEmailScript.Text = m_EmailHelper.EmailJS();
     FillLiterals();
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
     ctlEditor.ID = "description";
     ctlEditor.AllowScripts = true;
     ctlEditor.Height = new Unit(450, UnitType.Pixel);
     ctlEditor.Width = new Unit(100, UnitType.Percentage);
     ctlEditor.ToolsFile = m_refContentApi.ApplicationPath + "ContentDesigner/configurations/InterfaceTask.xml";
     ctlEditor.AllowFonts = true;
     ctlEditor.ShowHtmlMode = false;
     ctlEditor.Stylesheet = m_refContentApi.ApplicationPath + "csslib/ewebeditprostyles.css";
     RegularExpressionValidator ctlValidator = new RegularExpressionValidator();
     Ektron.Cms.Common.EkMessageHelper m_refMsg = m_refSiteApi.EkMsgRef;
     ctlValidator.ID = "RegExpValidator";
     ctlValidator.ControlToValidate = "description";
     ctlValidator.ErrorMessage = m_refMsg.GetMessage("content size exceeded");
     ctlValidator.ValidationExpression = Utilities.BuildRegexToCheckMaxLength(int.Parse(iMaxContLength));
     Action = EkFunctions.HtmlEncode(Request.QueryString["action"]);
     if ("AddTask" == Action)
     {
         AddTaskValidatorHolder.Controls.Add(ctlValidator);
         AddTaskEditorHolder.Controls.Add(ctlEditor);
     }
     else if ("EditTask" == Action)
     {
         EditTaskValidatorHolder.Controls.Add(ctlValidator);
         EditTaskEditorHolder.Controls.Add(ctlEditor);
     }
     if (Request.QueryString["page"] != null)
     {
         CurrentPage = EkFunctions.ReadIntegerValue(Request.QueryString["page"], 1);
     }
 }
Пример #7
0
 private void InitializeEditor()
 {
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("Controls/Editor/ContentDesignerWithValidator.ascx");
     phEditor.Controls.Add(ctlEditor);
     ctlEditor.ID = "txtTextAddEdit";
     ctlEditor.Height = new Unit(100, UnitType.Percentage);
     ctlEditor.AllowScripts = false;
     ctlEditor.Width = new Unit(100, UnitType.Percentage);
     ctlEditor.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.Minimal;
     ctlEditor.ShowHtmlMode = true;
 }
Пример #8
0
 private void Page_Init(System.Object sender, System.EventArgs e)
 {
     m_refContent = new Ektron.Cms.Content.EkContent(m_refContentApi.RequestInformationRef);
     m_reftask = m_refContentApi.EkTaskRef;
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("../controls/Editor/ContentDesignerWithValidator.ascx");
     pnl_message_editor.Controls.Add(ctlEditor);
     ctlEditor.Visible = false;
     ctlEditor.ID = "content_html";
     ctlEditor.ToolsFile = m_refContentApi.ApplicationPath + "ContentDesigner/configurations/InterfaceBlog.aspx?EmoticonSelect=1&WMV=1";
 }
Пример #9
0
 private void Page_Init(System.Object sender, System.EventArgs e)
 {
     _ContentDesigner = (ContentDesignerWithValidator) LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
         phEditContent.Controls.Add(_ContentDesigner);
         _ContentDesigner.Visible = false;
         _ContentDesigner.ID = "content_html";
         _ContentDesigner.Toolbars = Ektron.ContentDesignerWithValidator.Configuration.DataDesigner;
         _ContentDesigner.Height = new Unit(635, UnitType.Pixel);
         _ContentDesigner.AllowFonts = true;
         _ContentDesigner.ShowPreviewMode = true;
 }
Пример #10
0
 protected void Page_Init(object sender, System.EventArgs e)
 {
     ctlEditor = (Ektron.ContentDesignerWithValidator)LoadControl("../controls/Editor/ContentDesignerWithValidator.ascx");
     pnl_message_editor.Controls.Add(ctlEditor);
     ctlEditor.Visible = false;
     ctlEditor.ID = "content_html";
     ctlEditor.ToolsFile = m_refContentApi.ApplicationPath + "ContentDesigner/configurations/InterfaceBlog.aspx?EmoticonSelect=1&WMV=1";
 }
Пример #11
0
    protected void Page_Init(object sender, System.EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Session["EkDavSessionVal"] = null;
            Session["EkDavSessionASDList"] = new List<NameValueCollection>();
        }

        AppPath = m_refContApi.AppPath;
        m_SelectedEditControl = Utilities.GetEditorPreference(Request);
        m_refMsg = m_refContApi.EkMsgRef;
        Utilities.ValidateUserLogin();
        if (m_refContApi.RequestInformationRef.IsMembershipUser == 1 || m_refContApi.RequestInformationRef.UserId == 0)
        {
            Response.Redirect(m_refContApi.ApplicationPath + "reterror.aspx?info=" + Server.UrlEncode(m_refMsg.GetMessage("msg login cms user")), false);
            return;
        }

        if (System.Configuration.ConfigurationSettings.AppSettings["ek_EditorWidthUnits"] != null)
        {
            editorWidthUnitType = (UnitType)Enum.Parse(typeof(UnitType), System.Configuration.ConfigurationSettings.AppSettings["ek_EditorWidthUnits"]);
        }
        if (System.Configuration.ConfigurationSettings.AppSettings["ek_EditorWidth"] != null)
        {
            int.TryParse(System.Configuration.ConfigurationSettings.AppSettings["ek_EditorWidth"].ToString(), out editorWidthUnits);
        }
        //Register Page Components
        this.RegisterCSS();
        this.RegisterJS();

        phEditContent.Controls.Add(m_ctlContentPane);
        m_ctlContentPane.TagName = "div";
        m_ctlContentPane.ID = "dvContent";

        phEditSummary.Controls.Add(m_ctlSummaryPane);
        m_ctlSummaryPane.TagName = "div";
        m_ctlSummaryPane.ID = "dvSummary";

        m_ctlSummaryPane.Controls.Add(m_ctlSummaryStandard);
        m_ctlSummaryStandard.TagName = "div";
        m_ctlSummaryStandard.ID = "_dvSummaryStandard";

        m_ctlSummaryPane.Controls.Add(m_ctlSummaryRedirect);
        m_ctlSummaryRedirect.TagName = "div";
        m_ctlSummaryRedirect.ID = "_dvSummaryRedirect";

        m_ctlSummaryPane.Controls.Add(m_ctlSummaryTransfer);
        m_ctlSummaryTransfer.TagName = "div";
        m_ctlSummaryTransfer.ID = "_dvSummaryTransfer";

        m_ctlSummaryPane.Controls.Add(m_ctlSummaryReport);
        m_ctlSummaryReport.TagName = "div";
        m_ctlSummaryReport.ID = "_dvSummaryReport";

        // The ContentDesigner controls need to be created in the Page_Init event so the PostData
        // will be bound to them. However, they may not be displayed, so default .Visible=False.
        m_ctlContentDesigner = (ContentDesignerWithValidator)LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
        m_ctlContentPane.Controls.Add(m_ctlContentDesigner);
        m_ctlContentDesigner.Visible = false;
        m_ctlContentDesigner.ID = "content_html";

        m_ctlSummaryDesigner = (ContentDesignerWithValidator)LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
        m_ctlSummaryStandard.Controls.Add(m_ctlSummaryDesigner);
        m_ctlSummaryDesigner.Visible = false;
        m_ctlSummaryDesigner.ID = "content_teaser";

        m_ctlFormResponseRedirect = (ContentDesignerWithValidator)LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
        m_ctlSummaryRedirect.Controls.Add(m_ctlFormResponseRedirect);
        m_ctlFormResponseRedirect.Visible = false;
        m_ctlFormResponseRedirect.ID = "forms_redirect";

        m_ctlFormResponseTransfer = (ContentDesignerWithValidator)LoadControl("controls/Editor/ContentDesignerWithValidator.ascx");
        m_ctlSummaryTransfer.Controls.Add(m_ctlFormResponseTransfer);
        m_ctlFormResponseTransfer.Visible = false;
        m_ctlFormResponseTransfer.ID = "forms_transfer";

        m_ctlSummaryPane.Controls.Add(m_ctlFormSummaryReport);
        m_ctlFormSummaryReport.Visible = false;
        m_ctlFormSummaryReport.Src = "images/application/charttypes.gif";
        m_ctlFormSummaryReport.ID = "_imgFormSummaryReport";

        m_ctlContentValidator = ContentValidator; // New RegularExpressionValidator
        m_ctlContentValidator.Visible = false;
        m_ctlContentValidator.ControlToValidate = (string)m_ctlContentDesigner.ID;
        m_ctlContentValidator.EnableClientScript = true;

        m_ctlSummaryValidator = SummaryValidator; // New RegularExpressionValidator
        m_ctlSummaryValidator.Visible = false;
        m_ctlSummaryValidator.ControlToValidate = (string)m_ctlSummaryDesigner.ID;
        m_ctlSummaryValidator.EnableClientScript = true;
    }