fckeditor和asp.ent主题(them)冲突

解决办法:

1.
在fckeditor的web.config文件中做如下修改
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<pages styleSheetTheme="" theme=""> </pages>
</system.web>
</configuration>

 

2.当设置主题是用Global时

    void Application_PreRequestHandlerExecute(object src, EventArgs e)
        {
            Page page = this.Context.Handler as Page;
            if (page != null)
            {
                page.PreInit += new EventHandler(Page_PreInit);
            }
        }

        void Page_PreInit(object sender, EventArgs e)
        {
            Page page = this.Context.Handler as Page;
            if (page != null)
            {
                if (!page.ToString().Contains("ASP.fckeditor"))
                {
                    page.Theme = Request.Cookies["lang"].Value;
                }

            }
        }

 

你可能感兴趣的:(fckeditor)