fix: add copy button option to all text-based field types (#7145) #7603
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Fixes #7145
This is a ...
Motivation
Users reported that the "display a copy button" option was missing for fields in MariaDB connections. The issue occurred because the text-copy plugin only registered copy button settings for
Inputfields, but MariaDB and other databases often use different field types likeInput.TextArea,Input.URL,Input.JSON, etc. This limited the copy functionality to only basic input fields.Description
Key changes:
InputaddCopyButtonSettingfunction to reduce code duplicationInput.TextArea,Input.URL,Input.JSON,InputNumber,Markdown,MarkdownVditor,RichTextInputfield functionalityPotential risks:
Testing suggestions:
Related issues
Fixes #7145
Showcase
Before: Only Input fields had "Display copy button" option in context menu
After: All text-based field types (Input, TextArea, URL, JSON, Number, Markdown, RichText) have "Display copy button" option
Changelog
Docs
Checklists