reactjs / reactjs/react.dev

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

Abierto
#5,822 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
JavaScript
Estrellas
11.8k
Forks
7.9k
Merge medio
1 d 11 h
PR fusionados (30 d)
11

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Localiza el editor en vivo integrado que se utiliza en los ejemplos de documentación de React.dev y reproduce primero la impresión en Chrome, Firefox y Safari, incluida la exportación a PDF en Safari. Se considera terminado cuando el código inicial es visible al imprimir y se puede exportar a PDF en Safari; el issue no indica archivos ni pruebas que orienten la implementación.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript, react
Área
documentation, frontend
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.