Problem/Motivation
Contact center wants to be able to copy the output.
Since they can use the suffix field to add the button themself, we only need to add in the JS that grabs the content and adds it to clipboard.
Contact center wants to be able to copy the output.
Since they can use the suffix field to add the button themself, we only need to add in the JS that grabs the content and adds it to clipboard.
Comments
Comment #2
wouters_f commentedhttps://git.drupalcode.org/project/ai_search_block/-/commit/13c1a4a90974...
Comment #3
wouters_f commentedIf you use a link with class "ai-search-block-copy-output" when clicking that link it will take the output of the ai search block and add it to the clipboard.
This is practical in a contact center setting. Later this might move to a separate submodule.
Add the following in the suffix text:
<a href="javascript://" class="ai-search-block-copy-output" >Copy the answer</a>Comment #4
wouters_f commentedComment #5
wouters_f commentedComment #6
wouters_f commentedThis one is as good as done.
Seems to work for me.
Comment #7
jasdeba commentedTested on version 1.0.0-rc21
This is working.