{"id":15454646,"url":"https://github.com/gr2m/expandable-input","last_synced_at":"2025-12-12T04:43:38.770Z","repository":{"id":13892259,"uuid":"16590577","full_name":"gr2m/expandable-input","owner":"gr2m","description":"A Bootstrap plugin to use \u003c{span|div|...} contenteditable\u003e as auto-expanding inputs.","archived":false,"fork":false,"pushed_at":"2021-03-05T06:40:31.000Z","size":663,"stargazers_count":10,"open_issues_count":6,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-14T04:24:24.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gr2m.github.io/expandable-input","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/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-06T19:24:11.000Z","updated_at":"2024-03-21T18:29:23.000Z","dependencies_parsed_at":"2022-08-27T12:10:52.449Z","dependency_job_id":null,"html_url":"https://github.com/gr2m/expandable-input","commit_stats":null,"previous_names":["gr2m/bootstrap-expanding-input","gr2m/bootstrap-expandable-input"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/gr2m/expandable-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fexpandable-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fexpandable-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fexpandable-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fexpandable-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/expandable-input/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fexpandable-input/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260568350,"owners_count":23029271,"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-10-01T22:04:36.422Z","updated_at":"2025-12-12T04:43:38.738Z","avatar_url":"https://github.com/gr2m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expandable Input – A jQuery plugin\n\n\u003e A jQuery plugin to use \u003c{span|div|...} contenteditable\u003e as expandable inputs.\n\n[![Build Status](https://travis-ci.org/gr2m/expandable-input.svg)](https://travis-ci.org/gr2m/expandable-input)\n[![Dependency Status](https://david-dm.org/gr2m/expandable-input.svg)](https://david-dm.org/gr2m/expandable-input)\n[![devDependency Status](https://david-dm.org/gr2m/expandable-input/dev-status.svg)](https://david-dm.org/gr2m/expandable-input#info=devDependencies)\n\n## Download / Installation\n\nYou can download the latest JS \u0026 CSS code here:\n\n- https://unpkg.com/expandable-input/dist/expandable-input.js\n- https://unpkg.com/expandable-input/dist/expandable-input.css\n\nOr install via [npm](https://www.npmjs.com/)\n\n```\nnpm install --save expandable-input\n```\n\nThe JS code can be required with\n\n```js\nvar jQuery = require('jquery')\nvar expandableInput = require('expandable-input')\n\n// init\nexpandableInput(jQuery)\n```\n\nThe CSS code lives at `node_modules/expandable-input/expandable-input.css`\n\n## Usage\n\n```html\n\u003c!-- load jquery --\u003e\n\u003cscript src=\"jquery.js\"\u003e\u003c/script\u003e\n\n\u003c!-- load expandable-input assets --\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"expandable-input.css\"\u003e\n\u003cscript src=\"expandable-input.js\"\u003e\u003c/script\u003e\n\n\u003c!-- The behaviour is initialized on first interaction --\u003e\n\u003cp\u003e\n  \u003cstrong\u003eAuthor:\u003c/strong\u003e\n  \u003cspan contenteditable name=\"name\" placeholder=\"Joe Doe\"\u003e\u003c/span\u003e |\n  \u003cspan contenteditable name=\"email\" placeholder=\"joe@example.com\"\u003e\u003c/span\u003e\n\u003c/p\u003e\n\n\u003cp contenteditable placeholder=\"Write comment\"\u003e\u003c/p\u003e\n```\n\nTo listen to changes on the inputs\n\n```js\n$('[name=email]').on('input', function(event) {\n  console.log('Current name is:', $(this).val())\n})\n```\n\n## Notes\n\n- `$.fn.val()` \u0026 `$.fn.select()` are being patched to work with the `contenteditable` inputs\n- `display: inline` is currently not supported. It gets set to inline-block when initialized.\n- no html5 validation or password=type etc is not supported.\n\n## Local Setup\n\n```bash\ngit clone git@github.com:gr2m/smartdate-input.git\ncd smartdate-input\nnpm install\n```\n\n## Test\n\nYou can start a local dev server with\n\n```bash\nnpm start\n```\n\nRun tests with\n\n```bash\nnpm test\n```\n\nWhile working on the tests, you can start Selenium / Chrome driver\nonce, and then tests re-run on each save\n\n```bash\nnpm run test:mocha:watch\n```\n\n## Fine Print\n\nThe Expandable Input Plugin have been authored by [Gregor Martynus](https://github.com/gr2m),\nproud member of the [Hoodie Community](http://hood.ie/).\n\nLicense: MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fexpandable-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Fexpandable-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fexpandable-input/lists"}