@tiptap/extension-task-item
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-item@2.0.0-beta.1...@tiptap/extension-task-item@2.0.0-beta.2) (2021-04-06) | ||
### Bug Fixes | ||
* fix checkbox in firefox, fix [#251](https://github.com/ueberdosis/tiptap-next/issues/251) ([5622dec](https://github.com/ueberdosis/tiptap-next/commit/5622deca30397170bae341a000b9fe4693280c9b)) | ||
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-task-item@2.0.0-alpha.12...@tiptap/extension-task-item@2.0.0-beta.1) (2021-03-05) | ||
@@ -8,0 +19,0 @@ |
@@ -61,6 +61,8 @@ 'use strict'; | ||
const listItem = document.createElement('li'); | ||
const checkboxWrapper = document.createElement('label'); | ||
const checkboxStyler = document.createElement('span'); | ||
const checkbox = document.createElement('input'); | ||
const content = document.createElement('div'); | ||
checkboxWrapper.contentEditable = 'false'; | ||
checkbox.type = 'checkbox'; | ||
checkbox.contentEditable = 'false'; | ||
checkbox.addEventListener('change', event => { | ||
@@ -78,4 +80,7 @@ const { checked } = event.target; | ||
} | ||
listItem.append(checkbox, content); | ||
Object.entries(HTMLAttributes).forEach(([key, value]) => { | ||
checkboxWrapper.append(checkbox, checkboxStyler); | ||
listItem.append(checkboxWrapper, content); | ||
Object | ||
.entries(HTMLAttributes) | ||
.forEach(([key, value]) => { | ||
listItem.setAttribute(key, value); | ||
@@ -82,0 +87,0 @@ }); |
@@ -57,6 +57,8 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
const listItem = document.createElement('li'); | ||
const checkboxWrapper = document.createElement('label'); | ||
const checkboxStyler = document.createElement('span'); | ||
const checkbox = document.createElement('input'); | ||
const content = document.createElement('div'); | ||
checkboxWrapper.contentEditable = 'false'; | ||
checkbox.type = 'checkbox'; | ||
checkbox.contentEditable = 'false'; | ||
checkbox.addEventListener('change', event => { | ||
@@ -74,4 +76,7 @@ const { checked } = event.target; | ||
} | ||
listItem.append(checkbox, content); | ||
Object.entries(HTMLAttributes).forEach(([key, value]) => { | ||
checkboxWrapper.append(checkbox, checkboxStyler); | ||
listItem.append(checkboxWrapper, content); | ||
Object | ||
.entries(HTMLAttributes) | ||
.forEach(([key, value]) => { | ||
listItem.setAttribute(key, value); | ||
@@ -78,0 +83,0 @@ }); |
@@ -60,6 +60,8 @@ (function (global, factory) { | ||
const listItem = document.createElement('li'); | ||
const checkboxWrapper = document.createElement('label'); | ||
const checkboxStyler = document.createElement('span'); | ||
const checkbox = document.createElement('input'); | ||
const content = document.createElement('div'); | ||
checkboxWrapper.contentEditable = 'false'; | ||
checkbox.type = 'checkbox'; | ||
checkbox.contentEditable = 'false'; | ||
checkbox.addEventListener('change', event => { | ||
@@ -77,4 +79,7 @@ const { checked } = event.target; | ||
} | ||
listItem.append(checkbox, content); | ||
Object.entries(HTMLAttributes).forEach(([key, value]) => { | ||
checkboxWrapper.append(checkbox, checkboxStyler); | ||
listItem.append(checkboxWrapper, content); | ||
Object | ||
.entries(HTMLAttributes) | ||
.forEach(([key, value]) => { | ||
listItem.setAttribute(key, value); | ||
@@ -81,0 +86,0 @@ }); |
{ | ||
"name": "@tiptap/extension-task-item", | ||
"description": "task item extension for tiptap", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"homepage": "https://tiptap.dev", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "67781052b0ac805fbf82099a50e27f1dd28f8061" | ||
"gitHead": "2a64dda01d2b284f338d30ab87143753559ececc" | ||
} |
@@ -84,7 +84,9 @@ import { Node, mergeAttributes } from '@tiptap/core' | ||
const listItem = document.createElement('li') | ||
const checkboxWrapper = document.createElement('label') | ||
const checkboxStyler = document.createElement('span') | ||
const checkbox = document.createElement('input') | ||
const content = document.createElement('div') | ||
checkboxWrapper.contentEditable = 'false' | ||
checkbox.type = 'checkbox' | ||
checkbox.contentEditable = 'false' | ||
checkbox.addEventListener('change', event => { | ||
@@ -105,7 +107,10 @@ const { checked } = event.target as any | ||
listItem.append(checkbox, content) | ||
checkboxWrapper.append(checkbox, checkboxStyler) | ||
listItem.append(checkboxWrapper, content) | ||
Object.entries(HTMLAttributes).forEach(([key, value]) => { | ||
listItem.setAttribute(key, value) | ||
}) | ||
Object | ||
.entries(HTMLAttributes) | ||
.forEach(([key, value]) => { | ||
listItem.setAttribute(key, value) | ||
}) | ||
@@ -112,0 +117,0 @@ return { |
Sorry, the diff of this file is too big to display
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
483748
805