rename some methods

This commit is contained in:
Philipp Kühn
2020-11-17 21:10:08 +01:00
parent 99aebcc18b
commit a4ad1572e8
9 changed files with 18 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
import { Command, Mark, getMarkAttrs } from '@tiptap/core'
import { Command, Mark, getMarkAttributes } from '@tiptap/core'
const TextStyle = Mark.create({
name: 'textStyle',
@@ -30,7 +30,7 @@ const TextStyle = Mark.create({
* Remove spans without inline style attributes.
*/
removeEmptyTextStyle: (): Command => ({ state, commands }) => {
const attributes = getMarkAttrs(state, this.type)
const attributes = getMarkAttributes(state, this.type)
const hasStyles = Object.entries(attributes).every(([, value]) => !!value)
if (hasStyles) {