• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com专业计算机教程网站
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure
您的位置:首页 > 网页设计 >网页编辑器 > FCKeditor 在chrome中不显示问题

FCKeditor 在chrome中不显示问题

作者: 字体:[增加 减小] 来源:互联网 时间:2017-06-05

本文主要包含fckeditor,fckeditor使用方法,fckeditor官网,fckeditor下载,fckeditor漏洞等相关知识,希望在学习及工作中可以帮助到您

网上有人说如下修改就可以,不过也要看你用的是什么系统,程序员的水平就决定了兼容性问题,不过可以试试。

this.EnableSafari = true ; // This is a temporary property, while Safari support is under development.


把false修改为true之后显示正常

应该是chrome使用的内核WebKit的问题,需要修改safari的支持

建议以后广大程序员开发的时候要注意浏览器的兼容性问题。

fckeditor 没显示有问题
没一点格式 参考下吧

<html>
<head> 
<script src=/fckeditor/fckeditor.js"></script>
</head>
<body>
<form action="shou.jsp" method="post" target="_blank"> 
<script>
var editor = new FCKeditor('message');
editor.BasePath='/fckeditor/';
editor.Height=280;
editor.ToolbarSet='Default';
editor.Create();
</script>
<input type="submit" value="提交" name="button">
</form>
</body>
</html>
</div>


FCKeditor 没显示,出现空白页面
路劲问题吧 在web.config 里面设置fck的相对路径

<appSettings>
<add key="FCKEditor:BasePath" value="/FCKeditor"/>
<add key="FCKeditor:UserFilesPath" value="/UploadFiles/"/>
</appSettings>
</div>

上面的是你Fck所在的相对路径

下面的是fck上传文件的文件夹路径不过今天弄得一个后台由于是老板本,他使用了php判断当前浏览器与版本,chrome下编辑就不会出现的。需要修改一下函数就可以了。

原来的函数

function IsCompatible()
	{
		global $HTTP_USER_AGENT ;

		if ( isset( $HTTP_USER_AGENT ) )
			$sAgent = $HTTP_USER_AGENT ;
		else
			$sAgent = $_SERVER['HTTP_USER_AGENT'] ;

		if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false )
		{
			$iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ;
			return ($iVersion >= 5.5) ;
		}
		else if ( strpos($sAgent, 'Gecko/') !== false )
		{
			$iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
			return ($iVersion >= 20030210) ;
		}
		else
			return false ;
	}
</div>

修改后的函数

function IsCompatible()
	{
		global $HTTP_USER_AGENT ;

		if ( isset( $HTTP_USER_AGENT ) )
			$sAgent = $HTTP_USER_AGENT ;
		else
			$sAgent = $_SERVER['HTTP_USER_AGENT'] ;

		if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false )
		{
			$iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ;
			return ($iVersion >= 5.5) ;
		}
		else if ( strpos($sAgent, 'Gecko/') !== false )
		{
			$iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
			return ($iVersion >= 20030210) ;
		}
		else if ( strpos($sAgent, 'Chrome') !== false )
		{
			return 1;
		}
		else
			return false ;
	}
</div>

经过测试这样就正常显示了,解决问题。还有个问题那就是chrome下获取日期不能用getYear,需要用getFullYear(),但也有更好的解决方法,大家可以参考这篇文章。

</div>

您可能想查找下面的文章:

  • 解决FCKEditor在IE10、IE11下的不兼容问题
  • fckeditor编辑器下的自定义分页符实现方法
  • 针对PHP环境下Fckeditor编辑器上传图片配置详细教程
  • FCKeditor编辑器添加图片上传功能及图片路径问题解决方法
  • ie9后浏览器fckeditor无法上传图片、弹出浮层内容不显示的解决方法
  • FCKeditor 在chrome中不显示问题
  • ajax php实现给fckeditor文本编辑器增加图片删除功能
  • Fckeditor XML Request error:internal server error (500) 解决方法小结
  • FCKeditor smarty 编辑器的应用PHP
  • ThinkPHP中FCKeditor编辑器的使用方法

相关文章

  • 2017-06-05百度编辑器 如何获取光标位置与不同帧内的节点
  • 2017-06-05TinyMCE syntaxhl插入代码后换行的修改方法
  • 2017-06-05彻底解决ewebeditor网站后台不能上传图片的方法
  • 2017-06-05百度编辑器从Json对象中取值,完成初次渲染,在编辑器内画表格
  • 2017-06-05百度编辑器二次开发常用手记整理小结
  • 2017-06-05ckeditor和ueditor那个好 CKEditor和UEditor使用比较
  • 2017-06-05Office文档在线编辑的一个实现方法
  • 2017-06-05eWebEditor 请选择一个有效的文件的解决方法
  • 2017-06-05伪静态下不能使用FCKeditor的解决方法
  • 2017-06-05ckeditor syntaxhighlighter代码高亮插件,完美修复

文章分类

  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure

最近更新的内容

    • FCKeditor 网页在线编辑器的使用方法
    • 页面上存在多个FckEditor编辑器的验证方法
    • Prism 代码高亮修改不包含 Code 标签的支持
    • CKEditor 附插入代码的插件
    • 百度编辑器 ueditor 内容编辑自动套P标签,及p标签 替换
    • ckeditor syntaxhighlighter代码高亮插件,完美修复
    • 22个国外的Web在线编辑器收集
    • 为ckeditor编辑器加上传图片的功能
    • 为SyntaxHighlighter添加新语言的方法
    • syntaxhighlighter 去掉右上角问号图标的三种方法

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有