Rovak/InlineAttachment — pull request #27 by hmftw (2014-01-22 11:29:38+00:00)
Title: Hmftwpr1

Hello Rovak!

I had found another solution:

function attachInlineUpload() {

$(".overContent:not(.clone) .OCone .imgContainer").inlineattach({
uploadUrl:
'index.php?action=DELETED&method=saveInlineImgUpload&format='+currentInlineUploadMethod+'&modus='+$('input[name="modi"]').val()+'&dated='+$('input[name="datum"]').val()+'&s='+$sess,
uploadFieldName: 'imgUpload',
neededAttrData: ['rel'],
exFormData: ['relatedToId']
});

}

There are no problems with the instance and so one. The Script is totally well written and I didn't seen the method onReceivedFile. The Project was written on base of textareas, I have modified it that image-Tags or Div-Tags.

I will had binded the InlineAttachment-Plugin to the object when the Clone of the container('overContent') are created, but now, I easily rewrite all objects after the user-interaction and because of the "set.each" @ Line 82+ the imgContainer will be right attached...

Important: I dont have modified the Vanilla JS variant of the editor.

PS: I hope my english is clearly understandable....