Merge branch 'master' of github.com:jeena/seinheit.ch

This commit is contained in:
Logsol 2013-07-19 16:05:08 +02:00
commit ed20df5824
2 changed files with 1 additions and 2 deletions

BIN
public/img/header/1374241138.jpg Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Before After
Before After

View file

@ -5,8 +5,7 @@ function adminPageInsertImage(type, img) {
} else {
var editor = opener.myCodeMirror;
var img = '<img src="{@image ' + img + '}" alt="">';
var pos = editor.getCursor() // or {line , ch };
var tok = editor.getTokenAt(pos);
var pos = editor.getCursor();
editor.replaceRange(img, pos);
}
}