2013-03-14 116 views

回答

0

終於想通了這一點:

// Create a marker 
var myMark = cm.markText(...) 

// Add the listener directly on the marker 
CodeMirror.on(myMark, "hide", function(){ 
    // do stuff 
});