@tiptap/extension-underline
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-underline@2.0.0-beta.1...@tiptap/extension-underline@2.0.0-beta.2) (2021-04-09) | ||
### Bug Fixes | ||
* fix a bug where strike and underline can’t parsed together ([eff2c41](https://github.com/ueberdosis/tiptap-next/commit/eff2c4140a9e15762fa2238caf21dfbc47ffc3df)) | ||
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-underline@2.0.0-alpha.11...@tiptap/extension-underline@2.0.0-beta.1) (2021-03-05) | ||
@@ -8,0 +19,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-underline"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const n=t.Mark.create({name:"underline",defaultOptions:{HTMLAttributes:{}},parseHTML:()=>[{tag:"u"},{style:"text-decoration=underline"}],renderHTML({HTMLAttributes:e}){return["u",t.mergeAttributes(this.options.HTMLAttributes,e),0]},addCommands:()=>({setUnderline:()=>({commands:e})=>e.setMark("underline"),toggleUnderline:()=>({commands:e})=>e.toggleMark("underline"),unsetUnderline:()=>({commands:e})=>e.unsetMark("underline")}),addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline()}}});e.Underline=n,e.default=n,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-underline"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const n=t.Mark.create({name:"underline",defaultOptions:{HTMLAttributes:{}},parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",t.mergeAttributes(this.options.HTMLAttributes,e),0]},addCommands:()=>({setUnderline:()=>({commands:e})=>e.setMark("underline"),toggleUnderline:()=>({commands:e})=>e.toggleMark("underline"),unsetUnderline:()=>({commands:e})=>e.unsetMark("underline")}),addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline()}}});e.Underline=n,e.default=n,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=tiptap-extension-underline.bundle.umd.min.js.map |
@@ -18,3 +18,5 @@ 'use strict'; | ||
{ | ||
style: 'text-decoration=underline', | ||
style: 'text-decoration', | ||
consuming: false, | ||
getAttrs: style => (style.includes('underline') ? {} : false), | ||
}, | ||
@@ -21,0 +23,0 @@ ]; |
@@ -14,3 +14,5 @@ import { Mark, mergeAttributes } from '@tiptap/core'; | ||
{ | ||
style: 'text-decoration=underline', | ||
style: 'text-decoration', | ||
consuming: false, | ||
getAttrs: style => (style.includes('underline') ? {} : false), | ||
}, | ||
@@ -17,0 +19,0 @@ ]; |
@@ -18,3 +18,5 @@ (function (global, factory) { | ||
{ | ||
style: 'text-decoration=underline', | ||
style: 'text-decoration', | ||
consuming: false, | ||
getAttrs: style => (style.includes('underline') ? {} : false), | ||
}, | ||
@@ -21,0 +23,0 @@ ]; |
{ | ||
"name": "@tiptap/extension-underline", | ||
"description": "underline extension for tiptap", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"homepage": "https://tiptap.dev", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "67781052b0ac805fbf82099a50e27f1dd28f8061" | ||
"gitHead": "9fbde0f8da0af342f08645c077dce78a77c363e0" | ||
} |
@@ -41,3 +41,5 @@ import { Command, Mark, mergeAttributes } from '@tiptap/core' | ||
{ | ||
style: 'text-decoration=underline', | ||
style: 'text-decoration', | ||
consuming: false, | ||
getAttrs: style => ((style as string).includes('underline') ? {} : false), | ||
}, | ||
@@ -44,0 +46,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
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
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
24719
236