I managed to get the editor work in FireFox, but this is what I get in IE6.
Line: 17
Char: 20862
Error: 'length' is null or not an object
Code: 0
URL: http://myserver/www.web.com/fckeditor/e ... e=fArticle[article_content]&Toolbar=Basic
I know what you're thinking, "InstanceName=fArticle[article_content]" is causing the error. But that's not right, I tried other names and the same error occurs.
Fri, 01/07/2005 - 13:07
#1
RE: Error in IE6
<script type="text/javascript">
window.onload = function() {
var oFCKeditor = new FCKeditor( 'fArticle[article_content]' ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.FCKLang = "en";
oFCKeditor.Height = 400;
oFCKeditor.Width = "100%";
oFCKeditor.ToolbarSet = "Basic";
oFCKeditor.Config['SkinPath'] = "skins/office2003/";
oFCKeditor.Config["AutoDetectLanguage"] = true ;
oFCKeditor.Config["DefaultLanguage"] = "en" ;
if ( ! document.all )
oFCKeditor.Config['EnableXHTML'] = false ;
oFCKeditor.ReplaceTextarea();
}
</script>
<textarea name="fArticle[article_content]" id="fArticle[article_content]">my content alkdjf laskdj flasdj f</textarea>
RE: Error in IE6
My mistake! I found it
RE: Error in IE6
RE: Error in IE6
For example, check your FCKConfig.ToolbarSets and be sure that your toolbar sets end with a "]" symbol and not a "," if you edited or removed any icons from your toolbars.
For example, if you removed or commented out the ['About'] line, be sure the previous line looks like:
['TextColor','BGColor']
and not like
['TextColor','BGColor'],
Good luck