{"id":20596068,"url":"https://github.com/davidfig/easyedit","last_synced_at":"2026-04-16T21:32:49.828Z","repository":{"id":57218848,"uuid":"94158101","full_name":"davidfig/easyedit","owner":"davidfig","description":"inline editing of a single HTMLElement","archived":false,"fork":false,"pushed_at":"2018-01-02T10:23:47.000Z","size":530,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T07:36:13.616Z","etag":null,"topics":["edit","html","inline-editing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidfig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-13T01:57:47.000Z","updated_at":"2020-03-03T02:43:37.000Z","dependencies_parsed_at":"2022-08-29T02:11:48.894Z","dependency_job_id":null,"html_url":"https://github.com/davidfig/easyedit","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/davidfig%2Feasyedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Feasyedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Feasyedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidfig%2Feasyedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidfig","download_url":"https://codeload.github.com/davidfig/easyedit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231436,"owners_count":20093636,"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":["edit","html","inline-editing"],"created_at":"2024-11-16T08:15:02.403Z","updated_at":"2026-04-16T21:32:44.767Z","avatar_url":"https://github.com/davidfig.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easyedit\ninline editing of a single HTMLElement\n\n## rationale\n\nMake any element editable with a click. The input element uses the same font and font-size as the original element. Pressing enter or changing focus saves the new value. Pressing escape returns it to its original value.\n\n## simple example\n\n    const easyedit = require('easyedit')\n\n    const div = document.createElement('div')\n    document.body.appendChild(div)\n    div.innerHTML = 'Please edit me.'\n    new easyedit(div, { onsuccess: (value) =\u003e console.log('div changed to: ' + value) })\n\n## live example\nhttps://davidfig.github.io/easyedit/\n\n\n## API\n```js\n    /**\n     *\n     * @param {HTMLElement} object\n     * @param {object} options\n     * @param {object} options.styles - additional styles to apply to the inputElement\n     * @param {function} options.onedit - editing starts: callback(element, inputElement)\n     * @param {function} options.onsuccess - value changed and user pressed enter: callback(value, element, originalValue)\n     * @param {function} options.oncancel - editing canceled with escape: callback(element)\n     * @param {function} options.onchange - value was changed (but editing is not done): callback(value, element, originalValue)\n     */\n    constructor(object, options)\n\n```\n## license  \nMIT License  \n(c) 2017 [YOPEY YOPEY LLC](https://yopeyopey.com/) by [David Figatner](https://twitter.com/yopey_yopey/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Feasyedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidfig%2Feasyedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidfig%2Feasyedit/lists"}