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
Juan SpagnoliJuan Spagnoli 

Issue with apex editor in Summer 13 and Chrome

I realized that when I tried to edit an Apex class using chrome, it failed loading the code editor. It's giving a javascript error:

 

Uncaught ReferenceError: setAttr is not defined

 

at line 411 of edit_area_loader.js library.

 

I have the last version of chrome: Versión 26.0.1410.64 m

 

Does anyone experiencing the same problem?

 

Regards.

Best Answer chosen by Admin (Salesforce Developers) 
Juan SpagnoliJuan Spagnoli

Just clean your browser's cache and it starts working again. 

 

regards.

All Answers

fgwarb_1fgwarb_1

Same here, VF & Apex.  Firefox works though.

sandeep@Salesforcesandeep@Salesforce

I am not sure wether you are using JQuery or not if yes then please make sure .jQuery needs to be the first script  to use. The first script on your page.

<script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.jcarousel.min.js"></script>

Juan SpagnoliJuan Spagnoli
What? We are talking about the SFDC's standard code editor for apex classes, triggers and visualforce, not about any custom development.

regards
fgwarb_1fgwarb_1

Hello Sandeep,

The issue occurs while editing a VisualForce or Apex Class in the Chrome browser inside the Salesforce setup section.

 

Example url:

https://cs9.salesforce.com/setup/build/editApexClass.apexp?id=[your apex class id here]

 

I don't think I can edit the order of the scripts on this page.

Juan SpagnoliJuan Spagnoli

Just clean your browser's cache and it starts working again. 

 

regards.

This was selected as the best answer
henri saslawskyhenri saslawsky

Hi

 

I also got the problem. It was because I have "Zoom in" my browser. When I put my browser in normal size mode, the problem disappears

 

Regards