Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to update Code Mirror data on modal show

$('#exampleModal').on('shown.bs.modal', function() {
    myCodeMirror.setValue('[Your Dynamic Value]');
    // Refresh Code mirror Here 
    myCodeMirror.refresh();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #update #Code #Mirror #data #modal #show
ADD COMMENT
Topic
Name
3+2 =