Automattic / media-explorer

With Media Explorer, you can now search for tweets and videos on Twitter and YouTube directly from the Add Media screen in WordPress.
126 stars 31 forks source link

Highlight already-inserted tweets #33

Open paulgibbs opened 11 years ago

paulgibbs commented 11 years ago

Demo'd this to some VIPs and had some feedback that a visual indicator in the search results showing which bits of content that have already been embedded would be useful.

johnbillion commented 11 years ago

We could achieve this by allowing each service to specify a regex pattern that will match its inserted content. Then when the tab for that service is selected, we'll run that regex over the post content and it'll match each existing media item (URL) for that service and populate an array with them. Then when we return the results we just check against the array of existing media items and somehow highlight them.

paulgibbs commented 11 years ago

+1