Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 codemirror 合并视图的演示,我想禁用 Revert Chunk 链接。谁能告诉我这是否可行或是否可以选择关闭?
谢谢
您可以将CodeMirror-merge-copy类设置为 have display: none,这只会隐藏按钮,因此无法访问该功能。
CodeMirror-merge-copy
display: none
根据官方文档,似乎有一个新选项:只需将revertButtons选项设置为false.
revertButtons
false