fixes
This commit is contained in:
parent
09f73677d8
commit
3dffc7527d
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue