function setLink(url) {
CKEDITOR.instances.idofeditor.insertHtml("<imgsrc=\x22" + url + "\x22/>");
};
part of a custom file system I am using and for some reason it just doesn't work.
never throws an error but also never inserts the HTML even though it is valid

There's no space between "img
There's no space between "img" and "src". Editor will reject incorrect and not allowed HTML.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+