Search code examples
javascriptmergecodemirror

Disable revert chunk in codemirror merge view


I am trying to play with the demo of codemirror merge view and I wanted to disable the Revert Chunk link. Can anyone tell me if this is doable or if there is an option to turn off ?

Thanks


Solution

  • You can style the CodeMirror-merge-copy class to have display: none, that'd simply hide the buttons and thus provide no way to access that feature.