Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Navigate to editing different pages within the editor. #68854

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

dhananjaykuber
Copy link
Contributor

Fixes #56376

What?

Added an "Edit Post/Page" button in the link preview panel that allows direct navigation to the edit screen of linked posts.

Why?

Users need an easier way to edit linked posts/pages directly from the editor instead of searching through admin.

How?

  1. Added new button with commentEditLink icon in the link preview panel
  2. Created getEditUrl function to generate WordPress admin edit URL using post ID
  3. Added handleEditClick function to handle navigation

Testing Instructions

  1. Create/open a post in editor
  2. Add a link to another post/page
  3. Click link to open link preview panel
  4. Click "Edit Post/Page" button

Screencast

screen-capture.8.webm

Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: dhananjaykuber <dhananjaykuber@git.wordpress.org>
Co-authored-by: scruffian <scruffian@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigate to editing different pages within the editor.
2 participants