Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is it possible to use the "Insert/edit link" dialog box outside of TinyMCE? For example, if I wanted to add that dialog box to a generic button within a plugin settings form, is it possible to include just the portion of the TinyMCE that is required to make it work?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

this was asked before, but sadly the "Insert/edit link" (with interlinking) was developed as a tinymce plugin so using it outside of tinymce is not really possible unless your write the whole thing from scratch.

share|improve this answer
    
Do you have a reference to this previous question? I see that the link editor only references the editor via the TinyMCEPopup class. Maybe if we can create a stub editor and add it to the EditorManager, we can fake everything this plugin needs... –  Jan Fabry Apr 19 '11 at 9:39
    
@Jan: took a while but i've found it wordpress.stackexchange.com/questions/8749/… –  Bainternet Apr 19 '11 at 10:06
    
Wouldn't be easier to just write a JS file to open a popup, ask for a link and return the appropriate HTML? Why muck around with TinyMCE just to use a single button? –  t31os Apr 19 '11 at 10:18
    
That would be easier but i think he is looking for the new internal linking with the search features. –  Bainternet Apr 19 '11 at 13:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.