summaryrefslogtreecommitdiff
path: root/design/templates
diff options
context:
space:
mode:
Diffstat (limited to 'design/templates')
-rw-r--r--design/templates/admin/insert_images.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/design/templates/admin/insert_images.html b/design/templates/admin/insert_images.html
index 192feb9..8f393b1 100644
--- a/design/templates/admin/insert_images.html
+++ b/design/templates/admin/insert_images.html
@@ -95,7 +95,7 @@ Array.from(document.getElementsByClassName('insert')).forEach(function(item) {
} else {
var code = buildImage(item.dataset.src, item.dataset.id, item.dataset.class, item.dataset.caption);
}
- item.addEventListener("click", function( event ) {
+ item.addEventListener("click", function(event) {
var el = parent.document.getElementById('{{textarea_id}}');
var start = el.selectionStart;
var end = el.selectionEnd;
@@ -103,7 +103,6 @@ Array.from(document.getElementsByClassName('insert')).forEach(function(item) {
var before = text.substring(0, start);
var after = text.substring(end, text.length);
el.value = (before + code + after);
- console.log(code);
el.selectionStart = el.selectionEnd = start + code.length;
el.focus();
return false;