Fix editor bug
This commit is contained in:
parent
2259596ef7
commit
dea24f7f71
1 changed files with 6 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue