diff --git a/framework/core/js/package-lock.json b/framework/core/js/package-lock.json index 609e9e2fa..8a053610c 100644 --- a/framework/core/js/package-lock.json +++ b/framework/core/js/package-lock.json @@ -4474,6 +4474,11 @@ } } }, + "textarea-caret": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/textarea-caret/-/textarea-caret-3.1.0.tgz", + "integrity": "sha512-cXAvzO9pP5CGa6NKx0WYHl+8CHKZs8byMkt3PCJBCmq2a34YA9pO1NrQET5pzeqnBjBdToF5No4rrmkDUgQC2Q==" + }, "through2": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", diff --git a/framework/core/js/package.json b/framework/core/js/package.json index c6c8aa9b1..770f13ec4 100644 --- a/framework/core/js/package.json +++ b/framework/core/js/package.json @@ -16,6 +16,7 @@ "mithril": "^2.0.4", "punycode": "^2.1.1", "spin.js": "^3.1.0", + "textarea-caret": "^3.1.0", "webpack": "^4.43.0", "webpack-cli": "^3.3.11", "webpack-merge": "^4.1.4" diff --git a/framework/core/js/src/common/compat.js b/framework/core/js/src/common/compat.js index 5df365423..6811fa07d 100644 --- a/framework/core/js/src/common/compat.js +++ b/framework/core/js/src/common/compat.js @@ -19,7 +19,6 @@ import extract from './utils/extract'; import ScrollListener from './utils/ScrollListener'; import stringToColor from './utils/stringToColor'; import subclassOf from './utils/subclassOf'; -import SuperTextarea from './utils/SuperTextarea'; import patchMithril from './utils/patchMithril'; import proxifyCompat from './utils/proxifyCompat'; import classList from './utils/classList'; @@ -92,7 +91,6 @@ export default { 'utils/stringToColor': stringToColor, 'utils/Stream': Stream, 'utils/subclassOf': subclassOf, - 'utils/SuperTextarea': SuperTextarea, 'utils/setRouteWithForcedRefresh': setRouteWithForcedRefresh, 'utils/patchMithril': patchMithril, 'utils/proxifyCompat': proxifyCompat, diff --git a/framework/core/js/src/common/utils/SuperTextarea.js b/framework/core/js/src/common/utils/SuperTextarea.js deleted file mode 100644 index eebb4c487..000000000 --- a/framework/core/js/src/common/utils/SuperTextarea.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * A textarea wrapper with powerful helpers for text manipulation. - * - * This wraps a