function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
neil_edwards_fcca1.389781386123482E12neil_edwards_fcca1.389781386123482E12 

Javascript in Visualforce page works fine in Sandbox but doesn't work in Production

HI - I have this short Javascript in a visualforce page to extend the functionality of the Rich Text field.  This works fine in Sandbox (v30) but not in Production (v29). 

Any ideas?  Any likely settings in production environment that may be preventing this from running??
<apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"/>
 
<script> 
 
  $(document).ready(function(){

        CKEDITOR.on('instanceReady', function(e) { 
            if (e.editor.config.magic) return;
            var target = e.editor.config.bodyId;
            var name = e.editor.name;
            e.editor.destroy();
       CKEDITOR.editorConfig = function( config ) { config.magic = true; }
 
            CKEDITOR.replace(name, { 
                       height : 400, 
                       bodyId : target
            });
        });
    });
 
</script>


souvik9086souvik9086
As far as I know, there is no likely settings in production environment that can prevent this from running. 
You can check the browser compatibility for the same.
neil_edwards_fcca1.389781386123482E12neil_edwards_fcca1.389781386123482E12
ACtually I have two identical visualforce Pages. One attached to a custom object which has a lookup relationship to the parent, and the other a custom object on a Master/Detail relationship with the same parent. the VF page on the object with the lookup works fine, the one on the master/detail realtionship doesnt. Very Odd.