-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
New feature motivation
In Lime CRM, the code editor is featured in documentation contexts, where the recipients are less interested in code editing and the main objective is passing on code blocks for implementation cases.
New feature description
Using navigation.clipboard the content will be copied and can be pasted with formatting elsewhere. A limel-snackbar confirms a successful copy.
New feature implementation
Provided the editor has content, an absolute positioned icon button will appear in the right corner.
A less intrusive implementation would be rendering on editor focus, which is not possible for readonly code, which is why the button will always be rendered. With a general enough applicability of this feature, making it a prop won't be necessary for the rollout of this feature.
coderabbitai