JavaScript in SHarepoint Modern UI

只谈情不闲聊 提交于 2019-12-11 15:39:47

问题


We have created a SharePoint Communication site with Modern UI. We need to execute some Javascript code for chatbot integration. All we have to do is just reference some external js files.

How this can be achieved as modern UI blocks client scripting?


回答1:


You need to create a 'classic' page because, as you mentioned, JS cannot be executed in modern pages.

To do this:

Go to: Site Content-Site Pages.

Click on 'New' then either create a 'Web part' or 'wiki' page.

Then, in that page, simply click on settings(the cog icon at the top of page) then select edit this page.

Then insert content editor web part, where you can add the JS code.

See this link for more info: http://www.isaca-northtexas.org/SharePointTraining/TrainingPages/ContentEditorWebPart.html



来源:https://stackoverflow.com/questions/52715031/javascript-in-sharepoint-modern-ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!