From 55833ddc444685cbe9b6b1eb2d68e7f550237139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 14 Nov 2018 09:38:04 +0100 Subject: [PATCH] rename function --- packages/tiptap/src/utils/Editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tiptap/src/utils/Editor.js b/packages/tiptap/src/utils/Editor.js index c2f340a1..fbdfa272 100644 --- a/packages/tiptap/src/utils/Editor.js +++ b/packages/tiptap/src/utils/Editor.js @@ -51,7 +51,7 @@ export default class Editor { this.state = this.createState() this.view = this.createView() this.commands = this.createCommands() - this.getActiveNodesAndMarks() + this.setActiveNodesAndMarks() this.options.onInit({ view: this.view, state: this.state, @@ -189,7 +189,7 @@ export default class Editor { dispatchTransaction(transaction) { this.state = this.state.apply(transaction) this.view.updateState(this.state) - this.getActiveNodesAndMarks() + this.setActiveNodesAndMarks() if (!transaction.docChanged) { return @@ -244,7 +244,7 @@ export default class Editor { }, emitUpdate) } - getActiveNodesAndMarks() { + setActiveNodesAndMarks() { this.activeMarks = Object .entries(this.schema.marks) .reduce((marks, [name, mark]) => ({