Search code examples
phpjqueryckeditortextarea

Getting error while use of ckeditor only in chrome


Getting

getting above type of error in chrome browser only while integrate ckeditor its working fine for Firefox.

I calling below function for all text area of my project.

function getCKeditorSource($field_id, $field_name, $field_value = "")     {
 ?>
<textarea id="<?php echo $field_id ?>" name="<?php echo $field_name ? >"><?php echo stripslashes($field_value); ?></textarea>
<script type="text/javascript">
    $(window).load(function(){

        CKEDITOR.replace( '<?php echo $field_name ?>',{
            filebrowserBrowseUrl : 'ckeditor/ckfinder/ckfinder.html',
            filebrowserUploadUrl : 'ckeditor/ckeditor/uploader/upload.php',
            toolbar : 'MyToolbar',
            width: "100%"
        });
    });
</script>   

<?php
  }

Solution

  • Its not a issue this type of error generate due to catch of browser. this type of issue found just clear your catch first.

    Thanks all who take interest here.