@tiptap/extension-table-cell
Advanced tools
Comparing version 2.0.0-alpha.11 to 2.0.0-beta.1
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-cell@2.0.0-alpha.11...@tiptap/extension-table-cell@2.0.0-beta.1) (2021-03-05) | ||
**Note:** Version bump only for package @tiptap/extension-table-cell | ||
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-cell@2.0.0-alpha.10...@tiptap/extension-table-cell@2.0.0-alpha.11) (2021-02-16) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-table-cell"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const l=t.Node.create({name:"tableCell",defaultOptions:{HTMLAttributes:{}},content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",t.mergeAttributes(this.options.HTMLAttributes,e),0]}});e.TableCell=l,e.default=l,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-table-cell"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const l=t.Node.create({name:"tableCell",defaultOptions:{HTMLAttributes:{}},content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{const t=e.getAttribute("colwidth");return{colwidth:t?[parseInt(t,10)]:null}}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",t.mergeAttributes(this.options.HTMLAttributes,e),0]}});e.TableCell=l,e.default=l,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=tiptap-extension-table-cell.bundle.umd.min.js.map |
@@ -23,2 +23,11 @@ 'use strict'; | ||
default: null, | ||
parseHTML: element => { | ||
const colwidth = element.getAttribute('colwidth'); | ||
const value = colwidth | ||
? [parseInt(colwidth, 10)] | ||
: null; | ||
return { | ||
colwidth: value, | ||
}; | ||
}, | ||
}, | ||
@@ -25,0 +34,0 @@ }; |
@@ -19,2 +19,11 @@ import { Node, mergeAttributes } from '@tiptap/core'; | ||
default: null, | ||
parseHTML: element => { | ||
const colwidth = element.getAttribute('colwidth'); | ||
const value = colwidth | ||
? [parseInt(colwidth, 10)] | ||
: null; | ||
return { | ||
colwidth: value, | ||
}; | ||
}, | ||
}, | ||
@@ -21,0 +30,0 @@ }; |
@@ -23,2 +23,11 @@ (function (global, factory) { | ||
default: null, | ||
parseHTML: element => { | ||
const colwidth = element.getAttribute('colwidth'); | ||
const value = colwidth | ||
? [parseInt(colwidth, 10)] | ||
: null; | ||
return { | ||
colwidth: value, | ||
}; | ||
}, | ||
}, | ||
@@ -25,0 +34,0 @@ }; |
{ | ||
"name": "@tiptap/extension-table-cell", | ||
"description": "table cell extension for tiptap", | ||
"version": "2.0.0-alpha.11", | ||
"version": "2.0.0-beta.1", | ||
"homepage": "https://tiptap.dev", | ||
@@ -25,5 +25,5 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@tiptap/core": "^2.0.0-alpha.6" | ||
"@tiptap/core": "^2.0.0-beta.1" | ||
}, | ||
"gitHead": "71d8fbbcb1eacd664bb6992e0086a589e4684e69" | ||
"gitHead": "67781052b0ac805fbf82099a50e27f1dd28f8061" | ||
} |
@@ -27,2 +27,12 @@ import { Node, mergeAttributes } from '@tiptap/core' | ||
default: null, | ||
parseHTML: element => { | ||
const colwidth = element.getAttribute('colwidth') | ||
const value = colwidth | ||
? [parseInt(colwidth, 10)] | ||
: null | ||
return { | ||
colwidth: value, | ||
} | ||
}, | ||
}, | ||
@@ -29,0 +39,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
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
18760
200