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?
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.
-
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 theEditorManager
, 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