@tiptap/extension-task-item
Advanced tools
Comparing version 2.5.4 to 2.5.5
@@ -29,3 +29,6 @@ import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'; | ||
keepOnSplit: false, | ||
parseHTML: element => element.getAttribute('data-checked') === 'true', | ||
parseHTML: element => { | ||
const dataChecked = element.getAttribute('data-checked'); | ||
return dataChecked == null || dataChecked === 'true'; | ||
}, | ||
renderHTML: attributes => ({ | ||
@@ -32,0 +35,0 @@ 'data-checked': attributes.checked, |
@@ -33,3 +33,6 @@ (function (global, factory) { | ||
keepOnSplit: false, | ||
parseHTML: element => element.getAttribute('data-checked') === 'true', | ||
parseHTML: element => { | ||
const dataChecked = element.getAttribute('data-checked'); | ||
return dataChecked == null || dataChecked === 'true'; | ||
}, | ||
renderHTML: attributes => ({ | ||
@@ -36,0 +39,0 @@ 'data-checked': attributes.checked, |
@@ -9,6 +9,4 @@ import { MarkType, NodeType, Schema } from '@tiptap/pm/model'; | ||
export * as extensions from './extensions/index.js'; | ||
declare global { | ||
interface HTMLElement { | ||
editor?: Editor; | ||
} | ||
export interface TiptapEditorHTMLElement extends HTMLElement { | ||
editor?: Editor; | ||
} | ||
@@ -15,0 +13,0 @@ export declare class Editor extends EventEmitter<EditorEvents> { |
@@ -43,2 +43,7 @@ import { Mark as ProseMirrorMark, Node as ProseMirrorNode, NodeType, ParseOptions } from '@tiptap/pm/model'; | ||
}; | ||
beforeTransaction: { | ||
editor: Editor; | ||
transaction: Transaction; | ||
nextState: EditorState; | ||
}; | ||
transaction: { | ||
@@ -45,0 +50,0 @@ editor: Editor; |
{ | ||
"name": "@tiptap/extension-task-item", | ||
"description": "task item extension for tiptap", | ||
"version": "2.5.4", | ||
"version": "2.5.5", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,8 +32,8 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.5.4", | ||
"@tiptap/pm": "^2.5.4" | ||
"@tiptap/core": "^2.5.5", | ||
"@tiptap/pm": "^2.5.5" | ||
}, | ||
"peerDependencies": { | ||
"@tiptap/core": "^2.5.4", | ||
"@tiptap/pm": "^2.5.4" | ||
"@tiptap/core": "^2.5.5", | ||
"@tiptap/pm": "^2.5.5" | ||
}, | ||
@@ -40,0 +40,0 @@ "repository": { |
@@ -68,3 +68,7 @@ import { | ||
keepOnSplit: false, | ||
parseHTML: element => element.getAttribute('data-checked') === 'true', | ||
parseHTML: element => { | ||
const dataChecked = element.getAttribute('data-checked') | ||
return dataChecked == null || dataChecked === 'true' | ||
}, | ||
renderHTML: attributes => ({ | ||
@@ -71,0 +75,0 @@ 'data-checked': attributes.checked, |
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
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
197811
4469