reactjs / reactjs/react.dev

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

Open
#5,822 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
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:
  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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the embedded live editor used in React.dev documentation examples and first reproduce printing in Chrome, Firefox, and Safari, including Safari PDF export. Done means the initial code is visible when printed and can be exported to PDF in Safari; the issue names no files or tests to guide implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.