Add insert/edit 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
Please help me to achieve this.
The topic ‘Add insert/edit link functionality to front end tinymce’ is closed to new replies.