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).
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