@tiptap/extension-paragraph
Advanced tools
Comparing version 2.0.0-beta.16 to 2.0.0-beta.17
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.17](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-paragraph@2.0.0-beta.16...@tiptap/extension-paragraph@2.0.0-beta.17) (2021-08-11) | ||
### Bug Fixes | ||
* use setNode instead of toggleNode for setParagraph command ([bcc1309](https://github.com/ueberdosis/tiptap/commit/bcc1309cd928d4dc5618fa998722f935975389f0)) | ||
# [2.0.0-beta.16](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-paragraph@2.0.0-beta.15...@tiptap/extension-paragraph@2.0.0-beta.16) (2021-07-26) | ||
@@ -8,0 +19,0 @@ |
@@ -26,3 +26,3 @@ 'use strict'; | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleNode('paragraph', 'paragraph'); | ||
return commands.setNode('paragraph'); | ||
}, | ||
@@ -39,3 +39,3 @@ }; | ||
exports.Paragraph = Paragraph; | ||
exports.default = Paragraph; | ||
exports['default'] = Paragraph; | ||
//# sourceMappingURL=tiptap-extension-paragraph.cjs.js.map |
@@ -22,3 +22,3 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleNode('paragraph', 'paragraph'); | ||
return commands.setNode('paragraph'); | ||
}, | ||
@@ -34,4 +34,3 @@ }; | ||
export default Paragraph; | ||
export { Paragraph }; | ||
export { Paragraph, Paragraph as default }; | ||
//# sourceMappingURL=tiptap-extension-paragraph.esm.js.map |
@@ -26,3 +26,3 @@ (function (global, factory) { | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleNode('paragraph', 'paragraph'); | ||
return commands.setNode('paragraph'); | ||
}, | ||
@@ -39,3 +39,3 @@ }; | ||
exports.Paragraph = Paragraph; | ||
exports.default = Paragraph; | ||
exports['default'] = Paragraph; | ||
@@ -42,0 +42,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "@tiptap/extension-paragraph", | ||
"description": "paragraph extension for tiptap", | ||
"version": "2.0.0-beta.16", | ||
"version": "2.0.0-beta.17", | ||
"homepage": "https://tiptap.dev", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "345ea8cf8abba6422dabc6e548594fb8e2c30409" | ||
"gitHead": "f57466ccd009985bda4c928aedbc50e2b8be0c79" | ||
} |
@@ -44,3 +44,3 @@ import { Node, mergeAttributes } from '@tiptap/core' | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleNode('paragraph', 'paragraph') | ||
return commands.setNode('paragraph') | ||
}, | ||
@@ -47,0 +47,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
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
20696
170