Skip to content

limel-code-editorΒ #3769

@paulinewahle

Description

@paulinewahle

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions