mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
46b458cc0c
This was preexisting behaviour in CM5 as a rather hidden feature, and this patch brings it to CM6 keeping it just as hidden. That is, to have focus in the texatrea, hit Ctrl (or ⌘ on Mac) to insert multiple cursors, and similarly multiple selections and change their content. This doesn't actually fix the bug reported at T211205. That may not even be fixable, since jQuery.textSelection is the interface used to interact with editors, and it doesn't support multiple selections. Bug: T211205 Change-Id: I9d4d634c2ba46b909543a0090b871cee4b183fa0
59 lines
2.1 KiB
JSON
59 lines
2.1 KiB
JSON
{
|
|
"name": "codemirror",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "webpack -w --mode=development",
|
|
"build": "webpack --mode=production",
|
|
"test": "npm run test:lint && npm run test:unit && npm run check-built-assets && bundlesize",
|
|
"test:lint": "npm run test:lint:styles && npm run test:lint:js && npm run test:lint:i18n",
|
|
"test:lint:js": "eslint --cache .",
|
|
"test:lint:styles": "stylelint \"resources/**/*.less\"",
|
|
"test:lint:i18n": "banana-checker i18n/",
|
|
"test:unit": "jest",
|
|
"test:bundlesize": "bundlesize",
|
|
"check-built-assets": "{ git status src/ | grep \"nothing to commit, working tree clean\"; } && { echo 'CHECKING BUILD SOURCES ARE COMMITTED' && npm run build && git status resources/dist/ | grep \"nothing to commit, working tree clean\" || { npm run node-debug; false; }; }",
|
|
"node-debug": "node -v && npm -v && echo 'ERROR: Please ensure that production assets have been built with `npm run build` and commited, and that you are using the correct version of Node/NPM.'",
|
|
"selenium-test": "wdio tests/selenium/wdio.conf.js"
|
|
},
|
|
"engines": {
|
|
"node": "18.17.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.22.20",
|
|
"@babel/plugin-transform-private-methods": "^7.22.5",
|
|
"@babel/plugin-transform-runtime": "7.22.15",
|
|
"@babel/preset-env": "7.3.0",
|
|
"@codemirror/commands": "6.2.5",
|
|
"@codemirror/language": "6.9.3",
|
|
"@codemirror/search": "6.5.4",
|
|
"@codemirror/state": "6.2.1",
|
|
"@codemirror/view": "6.18.1",
|
|
"@lezer/highlight": "1.2.0",
|
|
"@wdio/cli": "7.30.1",
|
|
"@wdio/junit-reporter": "7.29.1",
|
|
"@wdio/local-runner": "7.30.1",
|
|
"@wdio/mocha-framework": "7.26.0",
|
|
"@wdio/spec-reporter": "7.29.1",
|
|
"@wikimedia/mw-node-qunit": "7.2.0",
|
|
"babel-loader": "9.1.3",
|
|
"bundlesize": "0.18.1",
|
|
"clean-webpack-plugin": "3.0.0",
|
|
"dotenv": "8.2.0",
|
|
"eslint-config-wikimedia": "0.26.0",
|
|
"grunt-banana-checker": "0.11.1",
|
|
"jest": "29.7.0",
|
|
"jest-environment-jsdom": "29.7.0",
|
|
"jquery": "3.7.1",
|
|
"stylelint-config-wikimedia": "0.16.1",
|
|
"wdio-mediawiki": "2.3.0",
|
|
"webpack": "5.89.0",
|
|
"webpack-cli": "5.1.4"
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "resources/dist/main.js",
|
|
"maxSize": "105.0kB"
|
|
}
|
|
]
|
|
}
|