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

Script editor web part for modern pages stopped working #5179

Closed
1 of 9 tasks
snailCorpse opened this issue Jul 4, 2024 · 7 comments
Closed
1 of 9 tasks

Script editor web part for modern pages stopped working #5179

snailCorpse opened this issue Jul 4, 2024 · 7 comments
Labels
sample: react-script-editor type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@snailCorpse
Copy link

snailCorpse commented Jul 4, 2024

Disclaimer

Yes

Sample

Script editor web part for modern pages

Contributor(s)

@waldekmastykarz

What happened?

Script Editor no longer works as expected. Started 1st July.

Script manager displays blank gaps in page where there would be the result of the javascript editor. When you edit the page, the webpart does not load correctly, and when you configure the part, the error message

"No settings available. The web part or dashboard card using this property pane was deleted."

Cannot add the editor again, as it is no longer displaying in the list of webparts to add. However in the application catalog the webpart is still showing as added and enabled

Steps to reproduce

  1. Load webpage that has modern web editor added
  2. Click on edit page
  3. Select webpart and click the pencil icon

Expected behavior

On edit page, I expect to see the heading of Modern Javascript editor, and be able to configure the javascript when clicking the pencil icon

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

What version of Node.js is currently installed on your workstation?

18

What version of Node.js is required by the sample?

18

Paste the results of SPFx doctor

not run

Additional environment details

none

@snailCorpse snailCorpse added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label Jul 4, 2024
@mrzosia
Copy link

mrzosia commented Jul 5, 2024

I am also experiencing the same issue across multiple sites. It hasn't worked since June 28th for our sites.

@icusick
Copy link

icusick commented Jul 9, 2024

We are also experiencing this issue.

@BlazeOfFeathers
Copy link

Microsoft has updated its settings related to custom scripts. From now on, custom scripts will only remain active for 24 hours. When you activate this feature, the custom script will be available again, but only for a 24-hour ...

@TheOlfer
Copy link

@debresnick
Copy link

I've tried using Powershell but it still disables after 24 hours. Does anyone know of a way to make it retain the setting?

@gdelgiovine
Copy link

What version are you using? The one that allow to load the script from URL?

@spg-iwilson
Copy link

You should be able to prevent the 24 hour reset by using:

Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True

This will stop working from November 2024

@hugoabernier hugoabernier closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample: react-script-editor type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Projects
None yet
Development

No branches or pull requests

9 participants