Skip to content

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

Open
dhananjaykuber wants to merge 1 commit intoWordPress:trunkfrom
dhananjaykuber:feat/navigate-to-editing-page-from-editor
Open

Feat: Navigate to editing different pages within the editor.#68854
dhananjaykuber wants to merge 1 commit intoWordPress:trunkfrom
dhananjaykuber:feat/navigate-to-editing-page-from-editor

Conversation

@dhananjaykuber
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown

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