Skip to content

Commit 297f845

Browse files
committed
Add preview event to for extra postprocessing
1 parent 249a676 commit 297f845

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

martor/static/martor/js/martor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
$('pre').each(function(i, block){
164164
hljs.highlightBlock(block);
165165
});
166+
$(document).trigger('martor:preview', [currentTab]);
166167
}else {currentTab.html('<p>Nothing to preview</p>');}
167168
},
168169
error: function(response) {

0 commit comments

Comments
 (0)