Soyab Badi
Soyab Badi

Reputation: 400

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
  }

Upvotes: 1

Views: 279

Answers (2)

Soyab Badi
Soyab Badi

Reputation: 400

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.

Upvotes: 0

Neel Thakkar
Neel Thakkar

Reputation: 406

I have created one demo. It's working, please check this.

<textarea cols="80" id="ckeditor" name="ckeditor" rows="10">Ckeditor</textarea>

<script>
    CKEDITOR.replace( 'ckeditor' );
</script>

Upvotes: 2

Related Questions