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
vishesh91vishesh91 

editing static resource

I am using a javascript file as a static resource in my vf page.Every time I have to edit the js file ,I edit it on my local computer and upload a new version of static resource.is there a way to edit the hosted file in force.com using online editor(as there is for vf pages and apex classes)

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

No, but you could use either of the following methods:

 

1) Use a visualforce page, and set its contentType to "text/plain" without headers. This gives you the ability to write the script directly in the UI.

 

2) Use the Force.com IDE, which lets you edit the file as a text file, and automatically deploy it when saving.