Initial code in embedded live editor not printable across various browsers and not exportable to PDF in Safari
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 11.8k
- Forks
- 7.9k
- Merge moyen
- 1 j 11 h
- PR mergées (30 j)
- 11
Description
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:
- Open the React.dev documentation with embedded live editor examples in Chrome, Firefox, or Safari.
- Navigate to a page containing an embedded live editor with initial code.
- 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:
- Initial code in the embedded live editor is not printable in Chrome, Firefox, or Safari.
- 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.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Repérez l’éditeur en direct intégré utilisé dans les exemples de documentation de React.dev et reproduisez d’abord l’impression dans Chrome, Firefox et Safari, y compris l’exportation au format PDF dans Safari. La tâche est considérée comme terminée lorsque le code initial est visible lors de l’impression et peut être exporté au format PDF dans Safari ; l’issue n’indique aucun fichier ni test pour guider l’implémentation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, react
- Domaine
- documentation, frontend
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100