Title: Insert/edit link (dialog)
Last modified: August 22, 2016

---

# Insert/edit link (dialog)

 *  [Mark Thomes](https://wordpress.org/support/users/markthomes/)
 * (@markthomes)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insertedit-link-dialog/)
 * I need to create a button in the tinyMCE editor that when clicked presents the
   editor with the same Insert/edit link dialog they get with the links button. 
   So I need to repurpose that functionality. Differences:
 * Steps:
    Open the Insert/edit link dialog via button. Do this without having to
   highlight a word first (unlike link button). Allow user to select a link from
   posts (same as link dialog – even better if I can hide the url field). Edit the
   title if required and insert into post with custom styling (wrapped in a div.
   class).
 * Results:
    See More | “This cool article you should read”.
 * I just can’t figure out how to access that window and functionality without having
   to recreate the wheel.

The topic ‘Insert/edit link (dialog)’ is closed to new replies.

## Tags

 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [insert link](https://wordpress.org/support/topic-tag/insert-link/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mark Thomes](https://wordpress.org/support/users/markthomes/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/insertedit-link-dialog/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
