You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the ONLY thing that renders on the page is the JavaScript part, taking up the whole page.
Steps to Reproduce
On a Windows 10 machine, Yeoman, Gulp, React, and Node.js 10.0, download sp-dev-fx-webparts.
cd samples/react-script-editor
gulp serve
Even in the Workbench (before deploying) this webpart causes any JavaScipt to override the whole page. The only things displayed on the page are those from the script.
The text was updated successfully, but these errors were encountered:
Update: MOST Javascript snippets behave this way, with the exception of the example in Readme.md. It appears that in order for the snippets to behave correctly, they must have a container written for them.
ChrisMenning
changed the title
Any JavaScript I paste into Modern Script Editor goes into full screen and overrides the whole page.
Most JavaScript I paste into Modern Script Editor goes into full screen and overrides the whole page.
Jan 24, 2020
Disregard this. I kept testing only javascript snippets that were using document.write, which was overwriting the document. A colleague showed me a workaround for these 25Live snippets where you create a div with an ID, then pass that ID into the spud.
Category
Authors
@wobba
Expected or Desired Behavior
Javascript embeds should be contained inside their containers, not take up the entire page.
Observed Behavior
After having successfully installed, built, and deployed react-script-editor to my SharePoint tenant, I did the following.
Now the ONLY thing that renders on the page is the JavaScript part, taking up the whole page.
Steps to Reproduce
On a Windows 10 machine, Yeoman, Gulp, React, and Node.js 10.0, download sp-dev-fx-webparts.
cd samples/react-script-editor
gulp serve
Even in the Workbench (before deploying) this webpart causes any JavaScipt to override the whole page. The only things displayed on the page are those from the script.
The text was updated successfully, but these errors were encountered: