Fix editor bug

This commit is contained in:
cuom1999 2023-01-22 19:18:14 -06:00
parent 2259596ef7
commit dea24f7f71

View file

@ -23,6 +23,12 @@ $(function () {
csrfmiddlewaretoken: $.cookie('csrftoken')
}, function (result) {
$content.html(result);
$(".dmmd-preview-content [data-src]img").each(function() {
$(this).attr("src", $(this).attr("data-src"));
})
$(".dmmd-preview-content [data-src]iframe").each(function() {
$(this).attr("src", $(this).attr("data-src"));
})
$preview.addClass('dmmd-preview-has-content').removeClass('dmmd-preview-stale');
var $jax = $content.find('.require-mathjax-support');