1

I need to embed Stackblitz on my site. The user can edit the document and render the output on the screen. I used Stackblitz api to embed the iframe. I cant find any document on Stackblitz.io to hide those options (share code). Can anyone help me ?

enter image description here

Malavan
  • 789
  • 7
  • 27
  • I'm trying programming test like feature. It's not good to allow this. And also, I don't want the student to navigate out of the page . – Malavan Jan 04 '19 at 11:13
  • I understand what you saying. I asked because, I want to prevent the easy way to share code. So there is no way to do that ? – Malavan Jan 04 '19 at 11:30
  • I used their SDK to provide the iframe. my sample code https://sdk-create-project-4pnxpm.stackblitz.io – Malavan Jan 04 '19 at 11:39

1 Answers1

2

In your project you need to add forceEmbedLayout: true

window['embedNewProject'] = () => {
  sdk.embedProject('myDiv', project, { height: 320, **forceEmbedLayout: true** });
}
CTheCheese
  • 362
  • 2
  • 12