Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-script-editor - #5195

Closed
adumith opened this issue Aug 1, 2024 · 4 comments
Closed

react-script-editor - #5195

adumith opened this issue Aug 1, 2024 · 4 comments

Comments

@adumith
Copy link

adumith commented Aug 1, 2024

Disclaimer

Yes

Sample

react-script-editor

Contributor(s)

@wobba @salascz @felixbohnacker

Question

Maybe I need new lenses, but I have not been able to find the link to download the sppkg file and upload it into my SharePoint.

Could you help me?

@felixbohnacker
Copy link

You will need to create the package yourself as described here: https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-script-editor#minimal-path-to-awesome

However, please keep in mind that using this web part in real-world scenarios is not recommended for security reasons.

@adumith
Copy link
Author

adumith commented Aug 7, 2024

Good morning, Felix,

Thank you for your reply.

I followed the process, but after uploading the package, I cannot use it. It was really frustrating.

I'm wondering if you have any idea how to enable the web part on the websites.

Thank you,

image

@salascz
Copy link
Contributor

salascz commented Aug 8, 2024

Hi @adumith,
as written above, you should keep in mind there might be security risks by making this sample solution available globally.

In addition, manifest of this solution requires to enable custom script on the site, before you use the web part (the web part cannot be installed on the site otherwise)

@wobba
Copy link
Contributor

wobba commented Aug 8, 2024

@adumith read the entire readme closely and you will be able to make it work. Still curious why you would use it instead of creating a governed SPFx solution with the code instead. This way no one can arbitrary change the code.

@wobba wobba closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants