blob: d75d8709c32ac8667c3202e6b5ca31da1014a7c4 (
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">400</span> chars used </span>');
$('#id_body_markdown').simplyCountable({
counter: '#counter',
countType: 'characters',
maxCount: 400,
strictMax: false,
countDirection: 'up',
safeClass: 'safe',
});
});
|