I am trying to edit HTML web resource in CRM 2011 Text Editor -> Source. I used to edit my HTML file here before, I primarily add javascript code and html codes here. Now, it only allows upload file, no editing.
If change my code in Source editor, then save, all my javascript and html codes are gone, only leaves CRM basic html template. That leaves me the only option is to upload htm every time I change. It is so cumbersome. Am I doing
something wrong?
You aren't doing anything wrong - the editor just doesn't handle the content very well honestly. Really the best solution is to use a dedicated (external) editor for HTML and JavaScript and the import the file.
Yes it is always better to use an external editor for HTML and Javascripts. I would like to recommend a tool which provides creating and editing the webresources functionality. It has a nice UI with a syntax highlighter editor to create and edit
webresources and put them in desired solutions. Not only that, it has other features such as Form editor, sitemap editor, bulk attribute creator, record counter, and many more are yet to come. Check this freely available tool @https://xrmwebkit.osmosys.asia
you can work in visual studio to Make changes in html/js/css web resource file and use below tool to import and publish resource to crm . it works with all Crm versions