No you don't need any external libraries. Just apply the patch, clear cache then enable the plugin on the social media settings page in the admin UI. Then the Copy link should appear, I assume you're already at this step. If it's not working at this point, check your JS console if there's any JS errors on your site which may prevent the functionality from working.
Does this affect 8.0.x?
I'm getting
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "full_date" plugin does not exist. Valid plugin IDs for Drupal\search_api\DataType\DataTypePluginManager are: elasticsearch_connector_date_range, elasticsearch_connector_rank_feature, object, elasticsearch_connector_search_as_you_type, decimal, date, string, text, integer, boolean in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
Patch for composer-patches
Reroll patch for Drupal 10.3 for composer patches. `node-add.css` is no longer there in 10.3 so moved the css to layout.css
@herved if the icon's using FA then it makes sense that sr-only should also work, thanks!
Here's a patch for sitewide_alert 2.2.1
This issue can be seen when you have extlink module installed, and add an external link to a sitewide alert. The external link icon is not attached to the link in the alert on load, but the icon is added after an ajax action occurs such as a modal window opening.
@Bohdan that's correct, things created using entity_generate won't have a migrate_map table created for them, so they won't get rolled back naturally.
You'll have to snapshot/create restore points for your DB while doing these things I found.
Thanks @balagan
Closing as we haven't got an update in a year.
Is `sr-only` a native Drupal CSS class? I don't know so asking. I think traditionally `visually-hidden` may be the more appropriate class to use here. So I'd take the patch in the related issue over this one.
$(once('once-id', document, context)).length;
unfortunately is 0.
Looks like $(once('once-id', document.body, context)).length;
is 1. So updating patch.
Included the D10 compatibility patch by accident. Here's another attempt.
Here's a reroll to use core/once which should be compatible with D10
Re-rolled above patch which didn't contain the reference to the TranslatableInterface
Here's a reroll for social_media:2.0.x-dev
@Martygraphie you need to enable the Copy to clipboard social media item in the module config form after applying the patch.
Apparently the api url field feeds the value of the data-clipboard-text attribute, which is a bit confusing.
This field just needs a token entered into it: [current-page:url]
This token will be replaced by the current page URL when the copy button is output.
Baysaa → created an issue.
I'm not sure if the `#access` part is relevant? I can't find any mention of `highcharts_settings` anywhere in code apart from that #access bit.
I'm removing the #access and re-uploading patch as it seems completely irrelevant here.