FCKeditor does not show problems in Chrome _ page Editor

Source: Internet
Author: User
Tags blank page

Someone on the internet said the following changes can be, but also depends on what you use the system, the level of the programmer determines the compatibility problem, but you can try.

This. Enablesafari = true; This is a temporary property that is under development the while Safari support.


Change false to True to show normal

It should be the kernel WebKit that Chrome uses and need to modify safari support

It is recommended that after the development of the vast number of programmers to pay attention to browser compatibility issues.

FCKeditor didn't show any problems.
not a bit of format reference.

 
 


FCKeditor not shown, blank page appears
How about a road problem? Set the relative path of the FCK inside the web.config

<appSettings>
<add key= "Fckeditor:basepath" value= "/fckeditor"/> <add key=
"FCKEditor: Userfilespath "value="/uploadfiles/"/>
</appSettings>

It's the relative path where you FCK.

The following is the FCK upload file folder path But the cloud-dwelling community has a background today. Because it is the boss, he used PHP to determine the current browser and version, chrome under the editor will not appear. You need to change the function.

The original function

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;
	

Modified function

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;
	

After testing this will be normal display, solve the problem. There is also a problem is that chrome to get the date can not use getyear, need to use getFullYear (), but also have a better solution, you can refer to this article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.