Not able to edit the JS files

Thread is closed for posting
3 posts, 0 answers
  1. Melroy
    Melroy avatar
    1 posts
    Member since:
    Nov 2014

    Posted 18 Nov 2014 Link to this post

    I am trying to Christine develop sample applicationusing Icenium Graphite. How do i edit or cordova.ios.js. 
    I am getting File is read only and can't edit. 
    Can any one sugguest me how do i edit JS files?
  2. Sepehr
    Sepehr avatar
    14 posts
    Member since:
    Oct 2014

    Posted 19 Nov 2014 in reply to Melroy Link to this post

    Hi Melroy,

    Perhaps you are not in a good direction. You probably never need to change the cordova files at all and instead you can add you js files and use them. It's not a good idea to change the base files in any programming frameworks.

  3. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 20 Nov 2014 Link to this post

    Hi Melroy,

    Using AppBuilder, you cannot modify the sources of the Cordova libraries. As you have noticed, these javascript files are read-only and even if they weren't all of the changes would have been lost upon building your application in the cloud. This is so, as when you perform a build, we take the Cordova bits from the server, instead of the local ones, in order to save time during the package upload.

    Further, I must agree with Sepehr and say that 3rd party library/framework files should not be changed with light hand. Instead, you can change the whole Cordova's (or any other library's) version and deploy newer bits. You can change the Cordova version from your project properties. As for other 3rd party frameworks or libraries you can use either the AppBuilder Package Manager or directly add the new files in your project navigator.

    Finally, you should be able to edit any other .js file inside an AppBuilder project. For example, you can create a new Blank (JavaScript) project and see if the index.js file, under the js folder is editable. Also, just as Sepehr has noted, you should be able to add new files in order to write your code there.

    I hope this helps.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top