Title: Add insert/edit link functionality to front end tinymce
Last modified: August 21, 2016

---

# Add insert/edit link functionality to front end tinymce

 *  [Amit Sukapure](https://wordpress.org/support/users/amitsukapure/)
 * (@amitsukapure)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/add-insertedit-link-functionality-to-front-end-tinymce/)
 * I would like to know how do I use insert/edit link functionality at front end
   tinymce added by plugin.
 * Before that I thought I can use WordPress’s tinymce by wp_editor() but, wp_editor
   not working on ajax call at all (tried everything but failed). Then I used external
   tinymce script.
 * I have added custom button on new tinymce,
 *     ```
       ed.addButton('new_link', {
               icon : 'new_link',
               title : 'New Link',
               onclick : function() {
                   wpActiveEditor = true;
                   console.log(wpLink);
                   wpLink.open(); //open the link popup
                   return false;
               }
       });
       ```
   
 * I also enqueue the script,
 * `wp_enqueue_script( 'wplink' );`
 * Ref. – [http://goo.gl/2g6EBC](http://goo.gl/2g6EBC)
    Please help me to achieve
   this.

The topic ‘Add insert/edit link functionality to front end tinymce’ is closed to
new replies.

## Tags

 * [frontend](https://wordpress.org/support/topic-tag/frontend/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)
 * [wplink](https://wordpress.org/support/topic-tag/wplink/)
 * [wp_editor](https://wordpress.org/support/topic-tag/wp_editor/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Amit Sukapure](https://wordpress.org/support/users/amitsukapure/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/add-insertedit-link-functionality-to-front-end-tinymce/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
