Skip to content

Commit

Permalink
fix: don't remove the tiptap styles on destroy, fix #2120, fix #2143
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Nov 9, 2021
1 parent 621cfa2 commit a0a88ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { EditorView } from 'prosemirror-view'
import { Schema, MarkType, NodeType } from 'prosemirror-model'
import getAttributes from './helpers/getAttributes'
import isActive from './helpers/isActive'
import removeElement from './utilities/removeElement'
import createDocument from './helpers/createDocument'
import getHTMLFromFragment from './helpers/getHTMLFromFragment'
import getText from './helpers/getText'
Expand Down Expand Up @@ -459,7 +458,6 @@ export class Editor extends EventEmitter<EditorEvents> {
}

this.removeAllListeners()
removeElement(this.css)
}

/**
Expand Down
5 changes: 0 additions & 5 deletions packages/core/src/utilities/removeElement.ts

This file was deleted.

1 comment on commit a0a88ac

@jcmorrow
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Please sign in to comment.