Merge branch 'master' of github.com:jeena/seinheit.ch
This commit is contained in:
commit
ed20df5824
2 changed files with 1 additions and 2 deletions
BIN
public/img/header/1374241138.jpg
Normal file → Executable file
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 |
|
@ -5,8 +5,7 @@ function adminPageInsertImage(type, img) {
|
||||||
} else {
|
} else {
|
||||||
var editor = opener.myCodeMirror;
|
var editor = opener.myCodeMirror;
|
||||||
var img = '<img src="{@image ' + img + '}" alt="">';
|
var img = '<img src="{@image ' + img + '}" alt="">';
|
||||||
var pos = editor.getCursor() // or {line , ch };
|
var pos = editor.getCursor();
|
||||||
var tok = editor.getTokenAt(pos);
|
|
||||||
editor.replaceRange(img, pos);
|
editor.replaceRange(img, pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue