Hey there, what would be the easiest way to implement a code block that can be copied within a rich-text element? I’ve tried to edit the rich-text and rich-text-input element blocks in the editor but couldn’t see a way to adjust the ```, codeblock tags.
The use case is similar to what you’d see in chatgpt - a code block with an option to copy at the top right.
I have a div button-wrapper that holds a button. It has an absolute positioning with a top and bottom value set to 0. This div is bound to the copyButton variable.
The button is on absolute position, with the top property bound to item.top.
There is a copyContent workflow on the button that has a Copy to clipboard action with item.content as a value.