Question

I created a new html webresource in order to use it as an iframe. I am using VS 2010 to create the website, for testing I copy the source code to the MSCRM html editor. At the beginning this worked fine, but now the site has grown and I detected that the editor adapts my source code when clicking 'Ok'.

Example: After copying source code to MSCRM editor After copying source code to MSCRM editor

After clicking 'OK' and reopening webresource: After clicking 'OK' and reopening webresource

I noticed, that the editor always cuts the source code after the second </script>-tag. Is there any option to disable this function or any workaround?

Edit:

I also tried to change tab and then click 'OK', but the problem is that my javascript manipulates DOM and when changing the tab the editor also manipulates my source code.

Example: After copying source code to MSCRM editor

After copying source code to MSCRM editor

After changing tab: After changing tab

After clicking 'OK' and reopening webresource: reopened webresource

Was it helpful?

Solution

What you faced it's a common issue with the built-in web resource editor of Dynamics CRM.

My suggestions are:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top