how to make undo history for SMultiLineEditableText

I’ve made simple editor widget that modifies SMultiLineEditableText Text.
but It can’t be undoed

It seems I need to call BeginEditTransaction() or EditableTextLayout->BeginEditTransation() but they are protected member.

I also tried to use GEditor->BeginTransaction but it didn’t work.
Is there any workaround for this? should I subclass SMultiLineEditableText?

Any help will be appreciated!

1 Like