I am struggling with the installation of CKEditor. After downloading the editor from the website, I inserted the code below between the head tags of my webpage:
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor1 = new CKEDITOR('message');
oFCKeditor1.ToolbarSet = 'Basic' ;
oFCKeditor1.BasePath = "ckeditor/" ;
oFCKeditor1.ReplaceTextarea() ;
}
</script>
However, I encountered an error with the line mentioned below:
Uncaught TypeError: object is not a function
var oFCKeditor1 = new CKEDITOR('message');
Could someone provide some insights on how to resolve this issue?