Enable spellcheck for markdown text area (#2669)

* Enable spellcheck for markdown text area

* Another dep bump
This commit is contained in:
SleeplessOne1917 2024-08-27 17:08:37 +00:00 committed by GitHub
parent 76219b9067
commit f456610930
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 326 additions and 363 deletions

View file

@ -26,12 +26,12 @@
}, },
"dependencies": { "dependencies": {
"@babel/plugin-proposal-decorators": "^7.24.7", "@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/plugin-transform-class-properties": "^7.24.7", "@babel/plugin-transform-class-properties": "^7.25.4",
"@babel/plugin-transform-runtime": "^7.24.7", "@babel/plugin-transform-runtime": "^7.25.4",
"@babel/plugin-transform-typescript": "^7.25.2", "@babel/plugin-transform-typescript": "^7.25.2",
"@babel/preset-env": "^7.25.3", "@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7", "@babel/preset-typescript": "^7.24.7",
"@babel/runtime": "^7.25.0", "@babel/runtime": "^7.25.4",
"@emoji-mart/data": "^1.2.1", "@emoji-mart/data": "^1.2.1",
"autosize": "^6.0.1", "autosize": "^6.0.1",
"babel-loader": "^9.1.3", "babel-loader": "^9.1.3",
@ -86,13 +86,13 @@
"tippy.js": "^6.3.7", "tippy.js": "^6.3.7",
"toastify-js": "^1.12.0", "toastify-js": "^1.12.0",
"tributejs": "^5.1.3", "tributejs": "^5.1.3",
"webpack": "^5.93.0", "webpack": "^5.94.0",
"webpack-cli": "^5.1.4", "webpack-cli": "^5.1.4",
"webpack-node-externals": "^3.0.0" "webpack-node-externals": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.25.2", "@babel/core": "^7.25.2",
"@eslint/js": "^9.9.0", "@eslint/js": "^9.9.1",
"@types/autosize": "^4.0.3", "@types/autosize": "^4.0.3",
"@types/bootstrap": "^5.2.10", "@types/bootstrap": "^5.2.10",
"@types/cookie": "^0.6.0", "@types/cookie": "^0.6.0",
@ -102,33 +102,33 @@
"@types/lodash.isequal": "^4.5.8", "@types/lodash.isequal": "^4.5.8",
"@types/markdown-it": "^14.1.2", "@types/markdown-it": "^14.1.2",
"@types/markdown-it-container": "^2.0.10", "@types/markdown-it-container": "^2.0.10",
"@types/node": "^22.3.0", "@types/node": "^22.5.0",
"@types/path-browserify": "^1.0.2", "@types/path-browserify": "^1.0.3",
"@types/sanitize-html": "^2.13.0", "@types/sanitize-html": "^2.13.0",
"@types/serialize-javascript": "^5.0.4", "@types/serialize-javascript": "^5.0.4",
"@types/toastify-js": "^1.12.3", "@types/toastify-js": "^1.12.3",
"@typescript-eslint/eslint-plugin": "^8.2.0", "@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.2.0", "@typescript-eslint/parser": "^8.3.0",
"eslint": "^9.9.0", "eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-inferno": "^7.34.0", "eslint-plugin-inferno": "^7.34.0",
"eslint-plugin-jsx-a11y": "^6.9.0", "eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.2.1", "eslint-plugin-prettier": "^5.2.1",
"globals": "^15.9.0", "globals": "^15.9.0",
"husky": "^9.1.4", "husky": "^9.1.5",
"import-sort-style-module": "^6.0.0", "import-sort-style-module": "^6.0.0",
"lint-staged": "^15.2.9", "lint-staged": "^15.2.9",
"prettier": "^3.3.3", "prettier": "^3.3.3",
"prettier-plugin-import-sort": "^0.0.7", "prettier-plugin-import-sort": "^0.0.7",
"prettier-plugin-organize-imports": "^4.0.0", "prettier-plugin-organize-imports": "^4.0.0",
"prettier-plugin-packagejson": "^2.5.1", "prettier-plugin-packagejson": "^2.5.2",
"qs": "^6.13.0", "qs": "^6.13.0",
"rimraf": "^6.0.1", "rimraf": "^6.0.1",
"sortpack": "^2.4.0", "sortpack": "^2.4.0",
"style-loader": "^4.0.0", "style-loader": "^4.0.0",
"terser": "^5.31.6", "terser": "^5.31.6",
"typescript": "^5.5.4", "typescript": "^5.5.4",
"typescript-eslint": "^8.2.0", "typescript-eslint": "^8.3.0",
"typescript-language-server": "^4.3.3", "typescript-language-server": "^4.3.3",
"webpack-bundle-analyzer": "^4.10.2", "webpack-bundle-analyzer": "^4.10.2",
"webpack-dev-server": "5.0.4" "webpack-dev-server": "5.0.4"
@ -145,7 +145,7 @@
"sortpack" "sortpack"
] ]
}, },
"packageManager": "pnpm@9.6.0", "packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1",
"engineStrict": true, "engineStrict": true,
"importSort": { "importSort": {
".js, .jsx, .ts, .tsx": { ".js, .jsx, .ts, .tsx": {

File diff suppressed because it is too large Load diff

View file

@ -223,6 +223,7 @@ export class MarkdownTextArea extends Component<
this.props.maxLength ?? markdownFieldCharacterLimit this.props.maxLength ?? markdownFieldCharacterLimit
} }
placeholder={this.props.placeholder} placeholder={this.props.placeholder}
spellCheck
/> />
{this.state.previewMode && this.state.content && ( {this.state.previewMode && this.state.content && (
<div <div