reactjs / reactjs/react.dev

Initial code in embedded live editor not printable across various browsers and not exportable to PDF in Safari

Offen
#5,822 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
JavaScript
Sterne
11.8k
Forks
7.9k
Ø Merge
1 T. 11 Std.
Gemergte PRs (30 T.)
11

Beschreibung

Issue description:

When attempting to print the initial code present in the embedded live editor within the React.dev documentation, the code appears blank in Chrome, Firefox, and Safari. Additionally, the initial code is not exportable to PDF in Safari.

Having the ability to print or export the initial code as a PDF would allow users to read the documentation without a screen and try the code in their local environment using their preferred IDE, such as vscode, without the need for a second screen.

It's important to note that the Vue.js live editor supports printable initial codes.

Steps to reproduce:
  1. Open the React.dev documentation with embedded live editor examples in Chrome, Firefox, or Safari.
  2. Navigate to a page containing an embedded live editor with initial code.
  3. Try to print the page or export it to PDF in Safari.
Expected behavior:

Initial code in the embedded live editor should be printable across different browsers and exportable to PDF in Safari.

Actual behavior:
  1. Initial code in the embedded live editor is not printable in Chrome, Firefox, or Safari.
  2. Initial code in the embedded live editor is not exportable to PDF in Safari.
Suggested solution:

Please consider adding support for printing and exporting the initial code in the embedded live editor within the documentation. This would make it more convenient for users who prefer to read the documentation without a screen and only use their IDE when trying out the code.

Additional information:

Comparatively, the Vue.js live editor supports printable initial codes in the mentioned browsers.

Thank you for looking into this issue. Please let me know if you need further information or clarification.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Finde den eingebetteten Live-Editor, der in den Dokumentationsbeispielen von React.dev verwendet wird, und reproduziere zunächst das Drucken in Chrome, Firefox und Safari, einschließlich des PDF-Exports in Safari. Als erledigt gilt die Aufgabe, wenn der anfängliche Code beim Drucken sichtbar ist und in Safari als PDF exportiert werden kann; das Issue nennt keine Dateien oder Tests, die die Implementierung anleiten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, react
Bereich
documentation, frontend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.