MCPcopy
hub / github.com/vitalets/x-editable

github.com/vitalets/x-editable @1.5.1 sqlite

repository ↗ · DeepWiki ↗ · release 1.5.1 ↗
1,702 symbols 4,127 edges 106 files 53 documented · 3%
README

X-editable

In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery.

Live demo

http://vitalets.github.io/x-editable/demo.html

Documentation

http://vitalets.github.io/x-editable

How to get it

Manual download

Use http://vitalets.github.io/x-editable main page.

Bower

bower install x-editable

CDN

Bootstrap 3 build:

<link href="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css" rel="stylesheet"/>
<script src="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js"></script>

Bootstrap 2 build:

<link href="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/css/bootstrap-editable.css" rel="stylesheet"/>
<script src="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap-editable/js/bootstrap-editable.min.js"></script>

jQuery UI build:

<link href="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jqueryui-editable/css/jqueryui-editable.css" rel="stylesheet"/>
<script src="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jqueryui-editable/js/jqueryui-editable.min.js"></script>

jQuery only build:

<link href="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jquery-editable/css/jquery-editable.css" rel="stylesheet"/>
<script src="https://github.com/vitalets/x-editable/raw/1.5.1/cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/jquery-editable/js/jquery-editable-poshytip.min.js"></script>

Reporting issues

Please provide jsFiddle when creating issues!
It's really saves much time. Use these as template:
1. jsFiddle Bootstrap 3
2. jsFiddle Bootstrap 2
3. jsFiddle jQuery-ui
4. jsFiddle jQuery
Your feedback is very appreciated!

Contribution

A few steps how to start contributing.
Assuming you have Node.js already installed.

1.Fork X-editable on github and clone it to your local mashine:

git clone https://github.com/<your-github-name>/x-editable.git -b dev

2.Install grunt-cli globally (if not yet):

npm i -g grunt-cli

3.Install dependencies:

cd x-editable
npm i

4.Make your changes:

vim editable-form.js

5.Write some tests for your changes:

vim /test/unit/*.js

6.Run tests in cli:

grunt test

or directly in browser:

grunt server

and open http://127.0.0.1:8000/test
By default test run on bootstrap 3 popup version, but you can test any other build:

  • bootstrap 3
  • popup: http://127.0.0.1:8000/test/?f=bootstrap3&c=popup
  • inline: http://127.0.0.1:8000/test/?f=bootstrap3&c=inline
  • bootstrap 2
  • popup: http://127.0.0.1:8000/test/?f=bootstrap2&c=popup
  • inline: http://127.0.0.1:8000/test/?f=bootstrap2&c=inline
  • jquery-ui
  • popup: http://127.0.0.1:8000/test/?f=jqueryui&c=popup
  • inline: http://127.0.0.1:8000/test/?f=jqueryui&c=inline
  • jquery + poshytip
  • popup: http://127.0.0.1:8000/test/?f=plain&c=popup
  • inline: http://127.0.0.1:8000/test/?f=plain&c=inline

7.Commit and push back on github:

git add .
git commit -m'refactor editable form, fix #123'
git push origin

8.Make pull request on github (to dev branch).

Thanks for your support!

Local build

To build x-editable locally please run:

grunt build

Result will appear in dist directory.

License

Copyright (c) 2012 Vitaliy Potapov
Licensed under the MIT license.

Core symbols most depended-on inside this repo

equal
called by 521
src/inputs/select2/lib/select2.js
tip
called by 158
test/mocks.js
callback
called by 63
test/libs/bootstrap300/js/bootstrap.js
jQuery
called by 61
test/libs/jquery-ui-1.9.1.custom/js/jquery-1.8.2.js
jQuery
called by 58
test/libs/jquery/jquery-1.8.2.js
jQuery
called by 54
test/libs/jquery/jquery-1.9.1.js
jQuery
called by 53
test/libs/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js
jQuery
called by 53
test/libs/jquery-ui-1.10.1.custom/js/jquery-1.9.1.js

Shape

Function 1,702

Languages

TypeScript100%

Modules by API surface

src/inputs-ext/wysihtml5/bootstrap-wysihtml5-0.0.2/wysihtml5-0.3.0.js172 symbols
test/libs/jquery/jquery-1.9.1.js80 symbols
test/libs/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js80 symbols
test/libs/jquery-ui-1.10.2.custom/js/jquery-1.9.1.js80 symbols
test/libs/jquery-ui-1.10.1.custom/js/jquery-1.9.1.js80 symbols
test/libs/jquery/jquery-1.8.2.js72 symbols
test/libs/jquery-ui-1.9.1.custom/js/jquery-1.8.2.js72 symbols
test/libs/jquery/jquery-1.9.1.min.js71 symbols
test/libs/jquery/jquery-1.8.2.min.js63 symbols
test/libs/jquery-ui-1.9.1.custom/js/jquery-ui-1.9.1.custom.js54 symbols
test/libs/jquery-ui-1.10.2.custom/js/jquery-ui-1.10.2.custom.js53 symbols
test/libs/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js52 symbols

Dependencies from manifests, versioned

grunt0.4.1 · 1×
grunt-contrib-clean0.5.0 · 1×
grunt-contrib-concat0.3.0 · 1×
grunt-contrib-connect0.3.0 · 1×
grunt-contrib-copy0.4.1 · 1×
grunt-contrib-jshint0.6.4 · 1×
grunt-contrib-qunit0.2.2 · 1×
grunt-contrib-requirejs0.4.1 · 1×
grunt-contrib-uglify0.2.2 · 1×

For agents

$ claude mcp add x-editable \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact