Lundalogik / lime-elements

Provides reusable web components for Lime CRM
https://lundalogik.github.io/lime-elements/versions/latest
Other
38 stars 12 forks source link

feat(editor): add function to clear editor content #2919

Closed john-traas closed 2 months ago

john-traas commented 2 months ago

Consumers should be able to trigger a clearing of the text editor if needed.

One such use case is from the Feed Composer (currently using the Quick-Note) and the Quick-Note.

If a history note is saved, the text editor should be cleared. This implementation dispatches a transaction to update the view state of the text editor. This would preserve undo functionality. There is thinking along the lines that preserving this undo functionality might not be required, in which case we could instead trigger a re-render of the text-editor from within the consumer.

For now though, this draft PR can be used to demo the new text-editor from within the Feed Composer and from within the Quick Note (for example: on a ToDo card).

fixes https://github.com/Lundalogik/crm-feature/issues/4056

github-actions[bot] commented 2 months ago

Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-2919/