Initial code in embedded live editor not printable across various browsers and not exportable to PDF in Safari
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
定位 React.dev 文档示例中使用的嵌入式实时编辑器,并首先复现其在 Chrome、Firefox 和 Safari 中的打印功能,包括 Safari 中的 PDF 导出。完成的标准是打印时可以看到初始代码,并且可以在 Safari 中将其导出为 PDF;该 issue 未指定任何可用于指导实现的文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- documentation, frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100