Skip to content

Prevent undo of initial value, do not add initial value to history #9

@achimmihca

Description

@achimmihca

I try to prevent undo of the initial value.
I found some CodeMirror 6 related threads about this.

But I am unsure how to apply these approaches when using this Angular wrapper.

What I would like to do is to set the initial value with Transaction.addToHistory.of(false).
But my code is too late because the setValue method of this Angular wrapper has already made an initial change.

How can I prevent the initial value from showing up in the undo/redo history when using this Angular wrapper?

Thanks for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions