@tiptap/extension-paragraph
Advanced tools
Comparing version 1.0.0-alpha.2 to 2.0.0-alpha.1
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-paragraph@1.0.0-alpha.2...@tiptap/extension-paragraph@2.0.0-alpha.1) (2020-11-18) | ||
**Note:** Version bump only for package @tiptap/extension-paragraph | ||
# [1.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-paragraph@1.0.0-alpha.1...@tiptap/extension-paragraph@1.0.0-alpha.2) (2020-11-16) | ||
@@ -8,0 +16,0 @@ |
@@ -11,3 +11,3 @@ import { Command, Node } from '@tiptap/core'; | ||
*/ | ||
paragraph: () => Command; | ||
setParagraph: () => Command; | ||
}>; | ||
@@ -14,0 +14,0 @@ export default Paragraph; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@tiptap/core")):"function"==typeof define&&define.amd?define(["@tiptap/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-paragraph"]=t(e["@tiptap/core"])}(this,(function(e){"use strict";return e.Node.create({name:"paragraph",defaultOptions:{HTMLAttributes:{}},group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML:({HTMLAttributes:e})=>["p",e,0],addCommands:()=>({paragraph:()=>({commands:e})=>e.toggleBlockType("paragraph","paragraph")}),addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.paragraph()}}})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@tiptap/core")):"function"==typeof define&&define.amd?define(["@tiptap/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-paragraph"]=t(e["@tiptap/core"])}(this,(function(e){"use strict";return e.Node.create({name:"paragraph",defaultOptions:{HTMLAttributes:{}},group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML:({HTMLAttributes:e})=>["p",e,0],addCommands:()=>({setParagraph:()=>({commands:e})=>e.toggleBlockType("paragraph","paragraph")}),addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})})); | ||
//# sourceMappingURL=tiptap-extension-paragraph.bundle.umd.min.js.map |
@@ -25,3 +25,3 @@ 'use strict'; | ||
*/ | ||
paragraph: () => ({ commands }) => { | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleBlockType('paragraph', 'paragraph'); | ||
@@ -33,3 +33,3 @@ }, | ||
return { | ||
'Mod-Alt-0': () => this.editor.commands.paragraph(), | ||
'Mod-Alt-0': () => this.editor.commands.setParagraph(), | ||
}; | ||
@@ -36,0 +36,0 @@ }, |
@@ -23,3 +23,3 @@ import { Node } from '@tiptap/core'; | ||
*/ | ||
paragraph: () => ({ commands }) => { | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleBlockType('paragraph', 'paragraph'); | ||
@@ -31,3 +31,3 @@ }, | ||
return { | ||
'Mod-Alt-0': () => this.editor.commands.paragraph(), | ||
'Mod-Alt-0': () => this.editor.commands.setParagraph(), | ||
}; | ||
@@ -34,0 +34,0 @@ }, |
@@ -27,3 +27,3 @@ (function (global, factory) { | ||
*/ | ||
paragraph: () => ({ commands }) => { | ||
setParagraph: () => ({ commands }) => { | ||
return commands.toggleBlockType('paragraph', 'paragraph'); | ||
@@ -35,3 +35,3 @@ }, | ||
return { | ||
'Mod-Alt-0': () => this.editor.commands.paragraph(), | ||
'Mod-Alt-0': () => this.editor.commands.setParagraph(), | ||
}; | ||
@@ -38,0 +38,0 @@ }, |
{ | ||
"name": "@tiptap/extension-paragraph", | ||
"version": "1.0.0-alpha.2", | ||
"version": "2.0.0-alpha.1", | ||
"homepage": "https://tiptap.dev", | ||
@@ -24,5 +24,5 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@tiptap/core": "2.0.0-alpha.3" | ||
"@tiptap/core": "^2.0.0-alpha.0" | ||
}, | ||
"gitHead": "a8a578edb78db7763e2eda83960c25b02e8488c5" | ||
"gitHead": "276118e48eef313fb435088dee3dc58b91363109" | ||
} |
@@ -8,3 +8,3 @@ # @tiptap/extension-paragraph | ||
## Introduction | ||
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich-text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*. | ||
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*. | ||
@@ -11,0 +11,0 @@ ## Offical Documentation |
@@ -35,3 +35,3 @@ import { Command, Node } from '@tiptap/core' | ||
*/ | ||
paragraph: (): Command => ({ commands }) => { | ||
setParagraph: (): Command => ({ commands }) => { | ||
return commands.toggleBlockType('paragraph', 'paragraph') | ||
@@ -44,3 +44,3 @@ }, | ||
return { | ||
'Mod-Alt-0': () => this.editor.commands.paragraph(), | ||
'Mod-Alt-0': () => this.editor.commands.setParagraph(), | ||
} | ||
@@ -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
Sorry, the diff of this file is not supported yet
15335