Skip to content

Commit 041322e

Browse files
committed
Add proxy-polyfill to make tiptap work with IE11
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 0f33170 commit 041322e

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"prosemirror-transform": "^1.2.4",
4242
"prosemirror-utils": "^0.9.6",
4343
"prosemirror-view": "^1.14.6",
44+
"proxy-polyfill": "^0.3.1",
4445
"tiptap": "^1.27.0",
4546
"tiptap-commands": "^1.13.0",
4647
"tiptap-extensions": "^1.29.0",

src/EditorFactory.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ import { Image, PlainTextDocument, ListItem } from './nodes'
3939
import MarkdownIt from 'markdown-it'
4040
import taskLists from 'markdown-it-task-lists'
4141

42+
import 'proxy-polyfill'
43+
4244
import { MarkdownSerializer, defaultMarkdownSerializer } from 'prosemirror-markdown'
4345

4446
const loadSyntaxHighlight = async(language) => {

webpack.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
{
4848
test: /\.js$/,
4949
loader: 'babel-loader',
50-
exclude: /node_modules/
50+
exclude: /node_modules(?!(\/|\\)(proxy-polyfill)(\/|\\))/,
5151
},
5252
{
5353
test: /\.(png|jpg|gif|svg)$/,

0 commit comments

Comments
 (0)