Hi
I cannot view the test docs in any browser, ie, net, opera, firefox. The text boxes display but all I get in place of the editor is text "FCKeditor - Default Toolbar Set" for instance. ie does produce a taskbar error saying that "fckeditor is undefined" ??
The FCKeditor directory is installed at localhost/mysite/FCKeditor/
Can some body push my in the right direction please
I cannot view the test docs in any browser, ie, net, opera, firefox. The text boxes display but all I get in place of the editor is text "FCKeditor - Default Toolbar Set" for instance. ie does produce a taskbar error saying that "fckeditor is undefined" ??
The FCKeditor directory is installed at localhost/mysite/FCKeditor/
Can some body push my in the right direction please
RE: Does not work in any browser?
Without more info, it could be anything.
RE: Does not work in any browser?
</head>
<body>
<form action="TestSubmit.asp" target="_blank" method="post" language="javascript">
Normal Text Field<BR>
<input type="text" name="NormalInput" value="My 'normal' "field" value"><br>
<br>
Normal Textarea<br>
<textarea name="NormalTextArea" rows="2" cols="20"></textarea>
<br>
<br>
FCKeditor - Default Toolbar Set<BR>
<script language="javascript">
<!--
var oFCKeditor ;
oFCKeditor = new FCKeditor('EditorDefault') ;
oFCKeditor.BasePath = '/FCKeditor/' ; // '/FCKeditor/' is the default value so this line could be deleted.
oFCKeditor.Value = 'This is some <B>sample text</B>.' ;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
FCKeditor - Accessibility Toolbar Set<BR>
<script language="javascript">
<!--
oFCKeditor = new FCKeditor('EditorAccessibility') ;
oFCKeditor.Width = '80%' ;
oFCKeditor.Height = 120 ;
oFCKeditor.ToolbarSet = 'Accessibility' ;
oFCKeditor.Value = 'This is another test. <BR><B>The "Second" row.</B>' ;
oFCKeditor.CanUpload = false ; // Overrides fck_config.js default configuration
oFCKeditor.CanBrowse = false ; // Overrides fck_config.js default configuration
oFCKeditor.Create() ;
//-->
</script>
<br>
<br>
FCKeditor - Basic Toolbar Set<BR>
<script language="javascript">
<!--
oFCKeditor = new FCKeditor('EditorBasic', 300, 80, 'Basic', '<P align="center">Another test.</P>') ;
oFCKeditor.Create() ;
//-->
</script>
<br>
<br>
<input type="submit" value="Submit Data">
<br>
</form>
This is the default test.html page.
Regards
C
RE: Does not work in any browser?
Change:
oFCKeditor.BasePath = '/FCKeditor/' ;
To:
oFCKeditor.BasePath = 'FCKeditor/' ;
Please let us know whether that makes any difference.
RE: Does not work in any browser?
Ie will not display the inline frames displaying a page not found. Must be a path thing surely?
C
RE: Does not work in any browser?
<script language="javascript" src="../fckeditor.js"></script>
If you call the js editor from your "mysite" dir, that should be changed to:
<script language="javascript" src="FCKeditor/fckeditor.js"></script>
Also check the case of the directory name. I would advise you to use lowercase for the directory name and then adjust the script to lowercase dirname too.
Some server setups get confused with mixed/uppercase.
So let's presume your server setup is this:
localhost/
mysite/
fckeditor/
the subdirs
If the file which is calling the editor is located in mysite, change the js header call path as well as the basepath to:
js: src="fckeditor/fckeditor.js"
basepath: 'fckeditor/'
If that still doesn't work, get the javascript console out in Netscape/Firefox and let us know the errormessage you are getting.
RE: Does not work in any browser?
Console result from Firefox and Netscape 7
Error: fckeditor is not defined
Source File: http://localhost/usersites/fckeditor/_test/test.html
Line 36, 48, 63
Regards
C
RE: Does not work in any browser?
And please let me know the complete path of the file in which this code resides.
RE: Does not work in any browser?
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License
* (http://www.opensource.org/licenses/lgpl-license.php)
*
* For further information go to http://www.fredck.com/FCKeditor/
* or contact fckeditor@fredck.com.
*
* test.html: HTML page to test the editor javascript integration.
*
* Authors:
* Frederico Caldeira Knabben (fckeditor@fredck.com)
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
RE: Does not work in any browser?
P.S.: the basepath /js src path are inconsistent at this moment.
RE: Does not work in any browser?
RE: Does not work in any browser?
Ok...
Well the path is relative to the file which is calling it.
As you are calling the fckeditor from
localhost/usersites/fckeditor/_test/test.html
and the editor files are in
localhost/usersites/fckeditor/
change the paths to either one of the following:
Option 1:
<script language="javascript" src="../fckeditor.js"></script>
oFCKeditor.BasePath = '../' ;
Option 2:
<script language="javascript" src="http://localhost/usersites/fckeditor/fckeditor.js"></script>
oFCKeditor.BasePath = 'http://localhost/usersites/fckeditor/' ;
Either one should work, though option 1 would be preferred.
And.. if I may be so bold... google on something like "tutorial relative absolute path html" to get a grip on what we've been doing here.
RE: Does not work in any browser?
Hi
I have tried this before without success.
<title>FCKeditor - Javascript Test Page</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<script language="javascript"
src="http://localhost/usersites/fckeditor/fckeditor.js"></script>
</head>
<body>
<form action="TestSubmit.asp" target="_blank" method="post" language="javascript">
Normal Text Field<BR>
<input type="text" name="NormalInput" value="My 'normal' "field" value"><br>
<br>
Normal Textarea<br>
<textarea name="NormalTextArea" rows="2" cols="20"></textarea>
<br>
<br>
FCKeditor - Default Toolbar Set<BR>
<script language="javascript">
<!--
var oFCKeditor ;
oFCKeditor = new fckeditor('EditorDefault') ;
oFCKeditor.BasePath = 'http://localhost/usersites/fckeditor/' ; // '/FCKeditor/' is the default value so this line could be deleted.
oFCKeditor.Value = 'This is some <B>sample text</B>.' ;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
//-->
</script>
All browsers display the text boxes and the descriptive titles of each, but no editor??
C
RE: Does not work in any browser?
RE: Does not work in any browser?
Yes I have tried option 1
No joy
RE: Does not work in any browser?
Place this in between the
<script language="javascript" src="../fckeditor.js"></script> and the </head> tag.
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
window.status = editorInstance.Description ;
}
</script>
Let's see if that helps...
RE: Does not work in any browser?
Hi
So now I have:
<head>
<title>FCKeditor - Javascript Test Page</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<script language="javascript"
src="http://localhost/usersites/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
window.status = editorInstance.Description ;
}
</script>
</head>
<body>
<form action="TestSubmit.asp" target="_blank" method="post" language="javascript">
Normal Text Field<BR>
<input type="text" name="NormalInput" value="My 'normal' "field" value"><br>
<br>
Normal Textarea<br>
<textarea name="NormalTextArea" rows="2" cols="20"></textarea>
<br>
<br>
FCKeditor - Default Toolbar Set<BR>
<script language="javascript">
<!--
var oFCKeditor ;
oFCKeditor = new fckeditor('EditorDefault') ;
oFCKeditor.BasePath = 'http://localhost/usersites/fckeditor/' ; // '/FCKeditor/' is the default value so this line could be deleted.
oFCKeditor.Value = 'This is some <B>sample text</B>.' ;
oFCKeditor.Config['StyleNames'] = ';Style 1;Style 2; Style 3' ;
oFCKeditor.Config['ToolbarFontNames'] = ';Arial;Courier New;Times New Roman;Verdana' ;
oFCKeditor.Create() ;
//-->
</script>
<br>
FCKeditor - Accessibility Toolbar Set<BR>
<script language="javascript">
<!--
oFCKeditor = new fckeditor('EditorAccessibility') ;
oFCKeditor.Width = '80%' ;
oFCKeditor.Height = 120 ;
oFCKeditor.ToolbarSet = 'Accessibility' ;
oFCKeditor.Value = 'This is another test. <BR><B>The "Second" row.</B>' ;
oFCKeditor.CanUpload = false ; // Overrides fck_config.js default configuration
oFCKeditor.CanBrowse = false ; // Overrides fck_config.js default configuration
oFCKeditor.Create() ;
//-->
</script>
<br>
<br>
FCKeditor - Basic Toolbar Set<BR>
<script language="javascript">
<!--
oFCKeditor = new fckeditor('EditorBasic', 300, 80, 'Basic', '<P align="center">Another test.</P>') ;
oFCKeditor.Create() ;
//-->
</script>
and it still does not work??!!!!
RE: Does not work in any browser?
C