I get the above warning when using IE 7. I do not get the warning in FF 3. I'm running FCKEditor 2.6.3. Here's the code that call my instances:
==========================================================================
<script type="text/javascript" src="../fckeditor/fckeditor.js"></script>
<textarea name="content_intro" id="content_intro" class="forminput"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content_intro');
oFCKeditor.Value = '';
oFCKeditor.BasePath = '../fckeditor/';
oFCKeditor.Height = 250;
oFCKeditor.ReplaceTextarea();
</script>
<textarea name="content_main" id="content_main" class="forminput"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content_main');
oFCKeditor.Value = '';
oFCKeditor.BasePath = '../fckeditor/';
oFCKeditor.Height = 400;
oFCKeditor.ReplaceTextarea();
var content_main = document.getElementById('content_main').value;
var oEditor = FCKeditorAPI.GetInstance('content_main') ;
var content_main = oEditor.GetXHTML(true);
</script>
==========================================================================
Any ideas?
Thanks.
Alan Pollenz
==========================================================================
<script type="text/javascript" src="../fckeditor/fckeditor.js"></script>
<textarea name="content_intro" id="content_intro" class="forminput"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content_intro');
oFCKeditor.Value = '';
oFCKeditor.BasePath = '../fckeditor/';
oFCKeditor.Height = 250;
oFCKeditor.ReplaceTextarea();
</script>
<textarea name="content_main" id="content_main" class="forminput"></textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('content_main');
oFCKeditor.Value = '';
oFCKeditor.BasePath = '../fckeditor/';
oFCKeditor.Height = 400;
oFCKeditor.ReplaceTextarea();
var content_main = document.getElementById('content_main').value;
var oEditor = FCKeditorAPI.GetInstance('content_main') ;
var content_main = oEditor.GetXHTML(true);
</script>
==========================================================================
Any ideas?
Thanks.
Alan Pollenz
Re: FCKEditorAPI is Undefined - JS Error
Have u got any solution ?
I am also suck on this error.
All are working in FF but IE causing problem.