RaspberryPiFoundation / editor-ui

Code Editor web component
https://editor-static.raspberrypi.org
Apache License 2.0
37 stars 8 forks source link

Productionise Output only Web Component #1010

Closed sra405 closed 3 weeks ago

sra405 commented 1 month ago

Similar to the embedded view from the site I wanted to see if it was simple enough to add an output only view to the web component.

It's worth noting the need for this in two use cases:

Notes

If its easier to do this in parts I'm all ears. The functionality for block to text is there and mostly aligns with what's needed for the standalone. Additionally if we think we can provide the functionality of the embedded viewer path as a web component I'm all ears too, we'd significantly reduce our number of iframe (not to zero unfortunately) but would also unlock performance gains too!

create-issue-branch[bot] commented 1 month ago

Branch issues/1010-Productionise_Output_only_Web_Component created!

floehopper commented 1 month ago

@sra405 I've created this draft PR by doing the following:

Image

floehopper commented 1 month ago

@sra405 I've created https://github.com/RaspberryPiFoundation/editor-ui/pull/1030 & https://github.com/RaspberryPiFoundation/editor-standalone/pull/164 to implement the embedded view in editor-standalone using the web component in output-only mode. Note that these also required that we made this change to the Block-to-Text app.

floehopper commented 4 weeks ago

@sra405 I've created #1030 & RaspberryPiFoundation/editor-standalone#164 to implement the embedded view in editor-standalone using the web component in output-only mode. Note that these also required that we made this change to the Block-to-Text app.

@sra405: These PRs are both merged now, so I'm hoping this issue is now resolved. Let me know if you think I've missed anything.