Forum Discussion
Code snippet web part
- Feb 06, 2019
As others have mentioned, the code snippet web part just displays code, it doesn't execute it.
You should also be aware that trying to override out of the box styles is not good practice. Those IDs are subject to change and they will change as they are dynamically generated.
As others have mentioned, the code snippet web part just displays code, it doesn't execute it.
You should also be aware that trying to override out of the box styles is not good practice. Those IDs are subject to change and they will change as they are dynamically generated.
Thank you so much for quick reply. Last night i did find a script editor webpart for modern pages on GitHub, and will take a look at that instead. It is not some great changes I want to make, so I will give it a try.
https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-script-editor
Frank