@tiptap/extension-text-style
Advanced tools
Comparing version 2.0.0-beta.14 to 2.0.0-beta.15
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.15](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-text-style@2.0.0-beta.14...@tiptap/extension-text-style@2.0.0-beta.15) (2021-06-14) | ||
### Bug Fixes | ||
* Fix removal of textStyle mark when any style resets ([#1465](https://github.com/ueberdosis/tiptap/issues/1465)) ([fbf4422](https://github.com/ueberdosis/tiptap/commit/fbf442269d021bbe17a9c0a830edfeda00bac85a)) | ||
# [2.0.0-beta.14](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-text-style@2.0.0-beta.13...@tiptap/extension-text-style@2.0.0-beta.14) (2021-06-07) | ||
@@ -8,0 +19,0 @@ |
@@ -33,3 +33,3 @@ 'use strict'; | ||
const attributes = core.getMarkAttributes(state, this.type); | ||
const hasStyles = Object.entries(attributes).every(([, value]) => !!value); | ||
const hasStyles = Object.entries(attributes).some(([, value]) => !!value); | ||
if (hasStyles) { | ||
@@ -36,0 +36,0 @@ return true; |
@@ -29,3 +29,3 @@ import { Mark, mergeAttributes, getMarkAttributes } from '@tiptap/core'; | ||
const attributes = getMarkAttributes(state, this.type); | ||
const hasStyles = Object.entries(attributes).every(([, value]) => !!value); | ||
const hasStyles = Object.entries(attributes).some(([, value]) => !!value); | ||
if (hasStyles) { | ||
@@ -32,0 +32,0 @@ return true; |
@@ -33,3 +33,3 @@ (function (global, factory) { | ||
const attributes = core.getMarkAttributes(state, this.type); | ||
const hasStyles = Object.entries(attributes).every(([, value]) => !!value); | ||
const hasStyles = Object.entries(attributes).some(([, value]) => !!value); | ||
if (hasStyles) { | ||
@@ -36,0 +36,0 @@ return true; |
{ | ||
"name": "@tiptap/extension-text-style", | ||
"description": "text style extension for tiptap", | ||
"version": "2.0.0-beta.14", | ||
"version": "2.0.0-beta.15", | ||
"homepage": "https://tiptap.dev", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5c8e46b0d48aa09ba0d2e8337ae6bbb2d7503e82" | ||
"gitHead": "697b2529d93a947477b60877dc914965dade7f57" | ||
} |
@@ -54,3 +54,3 @@ import { | ||
const attributes = getMarkAttributes(state, this.type) | ||
const hasStyles = Object.entries(attributes).every(([, value]) => !!value) | ||
const hasStyles = Object.entries(attributes).some(([, value]) => !!value) | ||
@@ -57,0 +57,0 @@ if (hasStyles) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23471