option-tree icon indicating copy to clipboard operation
option-tree copied to clipboard

Feature request: Link option type

Open bitcommit opened this issue 11 years ago • 1 comments

We're currently using the "Text" option type for links, but it would actually be nice to offer the same kind of assisted link creation as WordPress does in TinyMCE (i.e. offer the possibility to either enter a custom URL, or select an existing Page/Post with AJAX search).

Following is a screenshot of the WordPress popup to add a link in TinyMCE:

link creation screenshot

Could that be possible to re-use this system and implement it in OptionTree?

Also note the "Open link in a new window" checkbox and Title field, which most of us add support to via additional options...

I hope you like this idea as I do and that it makes sense to implement it (if it's not to much work). Maybe we can take a look at the way WordPress renders this popup and reuse it... I'll try to have a look to see if it's easily implementable outside of TinyMCE.

Let me know what you think!

bitcommit avatar Feb 09 '14 10:02 bitcommit

I like the idea of a link option type. If you can do that research into how that window works and if it can be replicated we can get this into 2.4.0. Cheers!

valendesigns avatar Feb 10 '14 00:02 valendesigns