{"id":19311087,"url":"https://github.com/boxuk/tinymce-imageupload","last_synced_at":"2025-07-12T13:38:34.607Z","repository":{"id":138957954,"uuid":"10624670","full_name":"boxuk/tinymce-imageupload","owner":"boxuk","description":"Image Upload Plugin","archived":false,"fork":false,"pushed_at":"2013-10-09T14:21:51.000Z","size":152,"stargazers_count":42,"open_issues_count":1,"forks_count":25,"subscribers_count":54,"default_branch":"master","last_synced_at":"2025-04-02T00:34:53.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/boxuk.png","metadata":{"files":{"readme":"README.md","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":"2013-06-11T15:34:47.000Z","updated_at":"2024-05-01T19:24:03.000Z","dependencies_parsed_at":"2023-05-30T04:30:19.705Z","dependency_job_id":null,"html_url":"https://github.com/boxuk/tinymce-imageupload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Ftinymce-imageupload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Ftinymce-imageupload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Ftinymce-imageupload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Ftinymce-imageupload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxuk","download_url":"https://codeload.github.com/boxuk/tinymce-imageupload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250258738,"owners_count":21400960,"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":"2024-11-10T00:27:43.295Z","updated_at":"2025-04-22T14:30:27.098Z","avatar_url":"https://github.com/boxuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"TinyMCE - ImageUpload\n=====================\n\n## What this does ##\n\nThis gives a very basic file upload form to a user which allows them to upload an image.\n\nAfter the image has been uploaded, the dialog closes and an image is placed into the area.\n\n## Requirements ##\n\nThis was written for TinyMCE version 4.0b1 (2013-04-11)\n\nIt utilises the iFrame Post Form plugin, which can be found here:\n\nhttp://sourceforge.net/projects/iframepostform/files/\n\n## Setup ##\n\nYour TinyMCE init() method should contain the following value:\n\n```javascript\ntinymce.init({\n    ...\n    imageupload_url: '/my/uploader/path', // PHP (or other server side script)\n    // imageupload_rel: 'http://cdn.somewhere.com/media/tinymce-plugin/imageupload', // use if not installed in plugin folder.\n    plugins: 'imageupload', // and your other plugins\n    toolbar1: 'imageupload' // and your others\n    ...\n});\n```\n\n## Recognised Responses ##\n\nIt handles a couple responses, which are:\n\n#### Success ####\n```javascript\n{\"error\":false,\"path\":\"http:\\/\\/www.mydomain.com\\/myimage.jpg\"}\n```\n\n#### Errors ####\n\nAn invalid image error message is produced by returning this:\n```javascript\n{\"error\":\"filetype\"}\n```\n\n\nAn unknown error message is produced with this:\n```javascript\n{\"error\":\"unknown\"}\n```\n\n## Known Issues ##\n\nThe jquery.iframe-post-form.js script commonly available fails to parse a JSON response in Chrome. This is mainly because chrome wraps the returned text in a 'pre' tag. Its a simple one line fix to the script, .html() is changed .text(). You can get the fixed script here - https://github.com/worldspawn/jquery.iframe-post-form","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Ftinymce-imageupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxuk%2Ftinymce-imageupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Ftinymce-imageupload/lists"}