I have included a js file in the content editor but it runs in the edit mode only. I have tried all the suggestions like
- Including text/javascript
- Include code between execfunc()
But it still doesn't work. Can someone please help me with this?
I have included a js file in the content editor but it runs in the edit mode only. I have tried all the suggestions like
But it still doesn't work. Can someone please help me with this?
Did you put the code directly inside the Content Editor? If so, try putting the code in a file in a document library and linking it to the Content Editor.
Another thing to check is if Minimal Download Strategy (MDS) is causing an issue. When the code is not working, does the URL contain "_layouts/15/start.aspx#"?