源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

伪静态下不能使用FCKeditor的解决方法

  • 时间:2022-10-23 01:24 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:伪静态下不能使用FCKeditor的解决方法
在使用FCKeditor的时候,可能会碰到以下这个问题,就是在编辑器页面出错,提示为:找不到页面/fckeditor/editor/fckeditor.aspx 那是因为正则中把fckeditor.html也替换成aspx的问题,而实际上并不存在后缀为ASPX的文件。针对这些错误,我采用了下面的方法: [b]  第1步:在正则中优先替换FCK编辑器文件夹的路径,并替换为htm后缀。 [/b]
[u]复制代码[/u] 代码如下:
<RewriterRule> <LookFor>~/fckeditor/(.*).html</LookFor> <SendTo>~/fckeditor/$1.htm</SendTo> </RewriterRule> <RewriterRule> <LookFor>(.*).html</LookFor> <SendTo>$1.aspx</SendTo> </RewriterRule>
[b]  第2步:为防止出现“没有为扩展名".htm”注册的生成提供程序”的错误,在WEB.CONFIG中加入 [/b]
[u]复制代码[/u] 代码如下:
<compilation debug="false"> <buildProviders> <add extension=".htm" type="System.Web.Compilation.PageBuildProvider" /> </buildProviders> </compilation>
[b]第3步:将fckeditro中所有的html后缀修改为htm,为避免FCK链接中的错误,再用DW将FCK内.html的代码批量替换为.htm [/b] 结束语:经修改后,本人的FCK已经能正常使用,但因为FCK内众多功能,并不能一一尝试,有时间的朋友或者追求完美的朋友可以自己多尝试一下。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部