From b85df2b4c1b606efe4061119c1c7701cf2b35eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 1 Apr 2020 21:41:53 +0200 Subject: [PATCH] refactoring --- packages/core/src/Editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/Editor.ts b/packages/core/src/Editor.ts index 33ba50b1..5b591571 100644 --- a/packages/core/src/Editor.ts +++ b/packages/core/src/Editor.ts @@ -184,11 +184,11 @@ export class Editor extends EventEmitter { this.emit('update', { transaction }) } - getMarkAttrs(name: string) { + public getMarkAttrs(name: string) { return getMarkAttrs(this.state, this.schema.marks[name]) } - isActive(name: string, attrs = {}) { + public isActive(name: string, attrs = {}) { const schemaType = getSchemaTypeByName(name, this.schema) if (schemaType === 'node') {