diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-08 18:46:04 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-06-15 17:16:52 +0300 |
commit | 543e8440f9425eb00ba27ea0f4637b243a043c87 (patch) | |
tree | 85ca0c755ae85279667bfa9c986dd26227fe3dd0 | |
parent | 8c7f299f4b90ef229d029edaeeee32f67a3b4cfc (diff) |
Add proxy-polyfill to make tiptap work with IE11
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | package-lock.json | 5 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | src/EditorFactory.js | 2 | ||||
-rw-r--r-- | webpack.common.js | 2 |
4 files changed, 9 insertions, 1 deletions
diff --git a/package-lock.json b/package-lock.json index 636edabd2..5fcdc0772 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16436,6 +16436,11 @@ "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", "dev": true }, + "proxy-polyfill": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/proxy-polyfill/-/proxy-polyfill-0.3.1.tgz", + "integrity": "sha512-jywE1NIksgIGqZc4uF0QLbXGz2RcHQobsCkAW+8F0nr/6agap+TWksEAKyLnIBafPD88HT9qZR2ec0oomHdjcQ==" + }, "prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", diff --git a/package.json b/package.json index 2adbfd3b5..06fc71de5 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "prosemirror-transform": "^1.2.6", "prosemirror-utils": "^0.9.6", "prosemirror-view": "^1.14.13", + "proxy-polyfill": "^0.3.1", "tiptap": "^1.27.1", "tiptap-commands": "^1.13.1", "tiptap-extensions": "^1.29.1", diff --git a/src/EditorFactory.js b/src/EditorFactory.js index 60ff164e2..8e9027257 100644 --- a/src/EditorFactory.js +++ b/src/EditorFactory.js @@ -40,6 +40,8 @@ import MarkdownIt from 'markdown-it' import taskLists from 'markdown-it-task-lists' import { translate as t } from '@nextcloud/l10n' +import 'proxy-polyfill' + import { MarkdownSerializer, defaultMarkdownSerializer } from 'prosemirror-markdown' const loadSyntaxHighlight = async(language) => { diff --git a/webpack.common.js b/webpack.common.js index e7d4649e7..744c99b18 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -47,7 +47,7 @@ module.exports = { { test: /\.js$/, loader: 'babel-loader', - exclude: /node_modules/ + exclude: /node_modules(?!(\/|\\)(proxy-polyfill)(\/|\\))/, }, { test: /\.(png|jpg|gif|svg)$/, |