Hey, pleeaassee. I really need your help. When I try to use FCK an error comes up. I don't know why -_-
http://moneymakers.mo.funpic.de/FCKedit ... ple02.html
html code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" content="noindex, nofollow"> <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script> <script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor( 'MyTextarea' ) ; oFCKeditor.ReplaceTextarea() ; } </script> </head> <body> <h1>FCKeditor - Javascript - Sample 2</h1> This sample displays a normal HTML form with an FCKeditor with full features enabled. It uses the "ReplaceTextarea" command to create the editor. <hr> <form action="/editor/sampleposteddata.asp" method="post" target="_blank"> <div> <script type="text/javascript"> var oFCKeditor = new FCKeditor( 'MyTextarea' ) ; oFCKeditor.Create() ; </script> </div> <br> <input type="submit" value="Submit"> </form> </body> </html>
RE: 404 - Page not found
Try replacing:
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
with :
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
Additionally you may want to keep both file and directory names lowercase (i.e. "fckeditor" instead of "FCKeditor"). Depending on your server, that sometimes causes problems too.
Good luck !
RE: 404 - Page not found
oFCKeditor.BasePath = "FCKEditor/";
After getting the same 404 error in IE, and a blank box in Mozilla PR 1.0.
It's now working. None of the samples or tests work either. I did this with version 1.6, as I was just trying to get anything working. Not sure what version you're using but it'd be helpful to others probably if you let them know if you get it working with the 2.0 beta 2 (including me).
Complete code:
<script type="text/javascript" src="FCKEditor/fckeditor.js"></script>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = "FCKEditor/";
oFCKeditor.Create() ;
</script>
RE: 404 - Page not found
oFCKeditor.Config[ "AutoDetectLanguage" ] = false ;
something, something that I read about in other posts, but that seems to be something for version 2.0. I'm going to download 2.0 now and see if I can't get it working.
RE: 404 - Page not found
Code in head:
<script type="text/javascript" src="FCKEditor/fckeditor.js"></script>
Complete code in body:
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.Config[ "AutoDetectLanguage" ] = false ;
oFCKeditor.BasePath = "FCKEditor/";
oFCKeditor.Create() ;
</script>
Now to see if I can't get the .NET control working...
HTH!