blob: 6d1b5a03c88c7b7e027cdaa953806d18b21b3ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var jQuery = django.jQuery;
var $ = jQuery;
$(document).ready(function () {
$('#id_body_markdown').after('<span style="display: inline-block; margin-left: 2em;"><span id="counter">40000</span> chars used </span>');
$('#id_body_markdown').simplyCountable({
counter: '#counter',
countType: 'characters',
maxCount: 40000,
strictMax: false,
countDirection: 'up',
safeClass: 'safe',
});
});
|