Initial code in embedded live editor not printable across various browsers and not exportable to PDF in Safari
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 11.8k
- Forks
- 7.9k
- Merge médio
- 1d 11h
- PRs com merge (30d)
- 11
Descrição
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.
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Localize o editor ao vivo incorporado usado nos exemplos de documentação do React.dev e primeiro reproduza a impressão no Chrome, Firefox e Safari, incluindo a exportação para PDF no Safari. Está concluído quando o código inicial estiver visível ao imprimir e puder ser exportado para PDF no Safari; a issue não indica arquivos nem testes para orientar a implementação.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript, react
- Domínio
- documentation, frontend
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100