You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I would like to ask if I add a copy button to the top right corner of the code block so that I can quickly copy the code inside, similar to the picture below:
The text was updated successfully, but these errors were encountered:
The code block is not customizable, but it's possible to replace it with another widget, possibly a code highlighter / viewer that already has a copy button.
Yes, the screenshot in my question was generated from CustomBlockEmbed in the documentation.
However, there are two issues I can't deal with when using CustomBlockEmbed:
Please refer to #2146, and consider using the experimental property customLeadingBlockBuilder instead of CustomBlockEmbed to override the built-in code block instead of implementing a new custom embed.
allows to pass an Iterable? parameter, but it doesn't seem to be working correctly at the moment, I'm still trying to find out why
Could you provide a minimal example code? The toPlainText() extracts plain text without attributes or rich output. What are you using it for?
Is there an existing issue for this?
The question
Hi all, I would like to ask if I add a copy button to the top right corner of the code block so that I can quickly copy the code inside, similar to the picture below:
The text was updated successfully, but these errors were encountered: