{"id":25963596,"url":"https://github.com/drewm/miu-imageupload","last_synced_at":"2025-03-04T20:47:19.237Z","repository":{"id":146234233,"uuid":"2511519","full_name":"drewm/MIU-ImageUpload","owner":"drewm","description":"A plugin for the MarkItUp! editor to enable image and file upload","archived":false,"fork":false,"pushed_at":"2016-01-02T16:13:22.000Z","size":16,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-23T17:29:43.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drewm.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-04T12:07:40.000Z","updated_at":"2023-04-17T12:25:54.483Z","dependencies_parsed_at":"2023-04-17T12:25:54.241Z","dependency_job_id":null,"html_url":"https://github.com/drewm/MIU-ImageUpload","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewm%2FMIU-ImageUpload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewm%2FMIU-ImageUpload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewm%2FMIU-ImageUpload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewm%2FMIU-ImageUpload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drewm","download_url":"https://codeload.github.com/drewm/MIU-ImageUpload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241921824,"owners_count":20042764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-04T20:47:18.695Z","updated_at":"2025-03-04T20:47:19.231Z","avatar_url":"https://github.com/drewm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. Image/File Upload for MarkItUp!\n\n\"markItUp!\":http://markitup.jaysalvat.com/ is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor.\n\nThis is a plugin for markItUp! to add the ability to browse for images and files to upload via ajax. A link to the file, or image tag is then returned to the editor.\n\nThis plugin supports Textile, Markdown and HTML.\n\nh2. Origin\n\nThis plugin was written for \"Perch\":http://grabaperch.com/ - a light weight PHP content management system. This is a simplified, standalone version of the plugin shipped by default with Perch.\n\nh2. Installation\n\nCopy the @image_upload@ folder into your @markitup@ folder.\n\nUse the following to add the button to your toolbar. You may wish to replace the default 'Pictures' button.\n\nbc. {name:'Picture', className:'image-upload', closeWith:function(markItUp){miu.ImageUpload.upload(markItUp,'textile');}}, \n{name:'File', className:'file-upload', closeWith:function(markItUp){miu.ImageUpload.upload(markItUp,'textile',true);}},\n\nReplace @textile@ with @markdown@ or @html@ for your language of choice.\n\nh2. Upload Script\n\nThe supplied @image_upload.php@ file performs an extremely basic file upload in PHP. Customise the paths at the start of the file to your system.\n\nh2. HTML Configuration\n\nThe plugin looks for three HTML5 @data-@ attributes on your @textarea@ tag, and if present, passes them along to the upload script:\n\n* @data-width@\n* @data-height@\n* @data-crop@\n\nThis can be used by the upload script for processing the image to match the context. This processing uses a Perch API, and so is not included with this version of the upload script. It could be easily implemented.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewm%2Fmiu-imageupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrewm%2Fmiu-imageupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewm%2Fmiu-imageupload/lists"}