简体   繁体   English

在Codemirror合并视图中更改“还原块”标题字符串

[英]Change “revert chunk” title string in codemirror merge view

I am trying to change the "revert chunk" string title of codemirror merge view. 我正在尝试更改Codemirror合并视图的“还原块”字符串标题。 Can anyone tell me if this is doable ? 谁能告诉我这是否可行?

Thanks 谢谢

_startPushToTooltip: function() {
    this._nPushToTooltipHandler = setInterval(function() {
        $(".CodeMirror-merge-copybuttons-left > .CodeMirror-merge-copy").prop("title", "push_to_right");
        $(".CodeMirror-merge-copybuttons-right > .CodeMirror-merge-copy").prop("title", "push_to_left");
    }, 500);
},

_stopPushToTooltipHandler: function() {
    clearInterval(this._nPushToTooltipHandler); 
},

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM