@tiptap/extension-text-align
Advanced tools
Comparing version 2.0.0-beta.18 to 2.0.0-beta.19
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.19](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-text-align@2.0.0-beta.18...@tiptap/extension-text-align@2.0.0-beta.19) (2021-06-17) | ||
### Bug Fixes | ||
* fix a bug where setting text align isn’t working when heading extension is not added ([ddb9a4b](https://github.com/ueberdosis/tiptap/commit/ddb9a4bf186b766477f21102dae6eb1299ea425a)) | ||
# [2.0.0-beta.18](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-text-align@2.0.0-beta.17...@tiptap/extension-text-align@2.0.0-beta.18) (2021-06-07) | ||
@@ -8,0 +19,0 @@ |
@@ -41,6 +41,6 @@ 'use strict'; | ||
} | ||
return this.options.types.every(type => commands.updateAttributes(type, { textAlign: alignment })); | ||
return this.options.types.some(type => commands.updateAttributes(type, { textAlign: alignment })); | ||
}, | ||
unsetTextAlign: () => ({ commands }) => { | ||
return this.options.types.every(type => commands.resetAttributes(type, 'textAlign')); | ||
return this.options.types.some(type => commands.resetAttributes(type, 'textAlign')); | ||
}, | ||
@@ -47,0 +47,0 @@ }; |
@@ -37,6 +37,6 @@ import { Extension } from '@tiptap/core'; | ||
} | ||
return this.options.types.every(type => commands.updateAttributes(type, { textAlign: alignment })); | ||
return this.options.types.some(type => commands.updateAttributes(type, { textAlign: alignment })); | ||
}, | ||
unsetTextAlign: () => ({ commands }) => { | ||
return this.options.types.every(type => commands.resetAttributes(type, 'textAlign')); | ||
return this.options.types.some(type => commands.resetAttributes(type, 'textAlign')); | ||
}, | ||
@@ -43,0 +43,0 @@ }; |
@@ -41,6 +41,6 @@ (function (global, factory) { | ||
} | ||
return this.options.types.every(type => commands.updateAttributes(type, { textAlign: alignment })); | ||
return this.options.types.some(type => commands.updateAttributes(type, { textAlign: alignment })); | ||
}, | ||
unsetTextAlign: () => ({ commands }) => { | ||
return this.options.types.every(type => commands.resetAttributes(type, 'textAlign')); | ||
return this.options.types.some(type => commands.resetAttributes(type, 'textAlign')); | ||
}, | ||
@@ -47,0 +47,0 @@ }; |
{ | ||
"name": "@tiptap/extension-text-align", | ||
"description": "text align extension for tiptap", | ||
"version": "2.0.0-beta.18", | ||
"version": "2.0.0-beta.19", | ||
"homepage": "https://tiptap.dev", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5c8e46b0d48aa09ba0d2e8337ae6bbb2d7503e82" | ||
"gitHead": "3757d07f706d00241c5989d4fc8de03edc793ede" | ||
} |
@@ -63,6 +63,6 @@ import { Extension } from '@tiptap/core' | ||
return this.options.types.every(type => commands.updateAttributes(type, { textAlign: alignment })) | ||
return this.options.types.some(type => commands.updateAttributes(type, { textAlign: alignment })) | ||
}, | ||
unsetTextAlign: () => ({ commands }) => { | ||
return this.options.types.every(type => commands.resetAttributes(type, 'textAlign')) | ||
return this.options.types.some(type => commands.resetAttributes(type, 'textAlign')) | ||
}, | ||
@@ -69,0 +69,0 @@ } |
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
32956