Rovak / InlineAttachment

Easily paste and upload files/images in plain textareas
http://git.razko.nl/InlineAttachment
MIT License
618 stars 77 forks source link

urlText not working #56

Closed audreylim closed 9 years ago

audreylim commented 9 years ago

I have this in my js file:

$(document).ready(function() {
  $(function() {
    $('textarea').inlineattachment({
      uploadUrl: 'upload_attachment.php',
      urlText: "testing" //this is not working, expecting "testing" to replace the default "![Uploading file...]()" text in textarea
    });
  });
});

Am I using this wrongly or is there a bug somewhere?

audreylim commented 9 years ago

Issue resolved. The default jsonFieldName was not set to the proper field name as in my SQL table. Solved by changing it.