@tiptap/extension-underline
Advanced tools
Comparing version 3.0.0-next.3 to 3.0.0-next.4
@@ -47,7 +47,7 @@ // src/underline.ts | ||
// src/index.ts | ||
var src_default = Underline; | ||
var index_default = Underline; | ||
export { | ||
Underline, | ||
src_default as default | ||
index_default as default | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tiptap/extension-underline", | ||
"description": "underline extension for tiptap", | ||
"version": "3.0.0-next.3", | ||
"version": "3.0.0-next.4", | ||
"homepage": "https://tiptap.dev", | ||
@@ -18,3 +18,6 @@ "keywords": [ | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"types": { | ||
"import": "./dist/index.d.ts", | ||
"require": "./dist/index.d.cts" | ||
}, | ||
"import": "./dist/index.js", | ||
@@ -32,3 +35,3 @@ "require": "./dist/index.cjs" | ||
"devDependencies": { | ||
"@tiptap/core": "^3.0.0-next.3" | ||
"@tiptap/core": "^3.0.0-next.4" | ||
}, | ||
@@ -44,4 +47,5 @@ "peerDependencies": { | ||
"scripts": { | ||
"build": "tsup" | ||
"build": "tsup", | ||
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/" | ||
} | ||
} | ||
} |
# @tiptap/extension-underline | ||
[![Version](https://img.shields.io/npm/v/@tiptap/extension-underline.svg?label=version)](https://www.npmjs.com/package/@tiptap/extension-underline) | ||
@@ -8,8 +9,11 @@ [![Downloads](https://img.shields.io/npm/dm/@tiptap/extension-underline.svg)](https://npmcharts.com/compare/tiptap?minimal=true) | ||
## 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_. | ||
## Official Documentation | ||
Documentation can be found on the [Tiptap website](https://tiptap.dev). | ||
## License | ||
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md). |
@@ -9,3 +9,3 @@ import { Mark, mergeAttributes } from '@tiptap/core' | ||
*/ | ||
HTMLAttributes: Record<string, any>, | ||
HTMLAttributes: Record<string, any> | ||
} | ||
@@ -20,3 +20,3 @@ | ||
*/ | ||
setUnderline: () => ReturnType, | ||
setUnderline: () => ReturnType | ||
/** | ||
@@ -26,3 +26,3 @@ * Toggle an underline mark | ||
*/ | ||
toggleUnderline: () => ReturnType, | ||
toggleUnderline: () => ReturnType | ||
/** | ||
@@ -32,3 +32,3 @@ * Unset an underline mark | ||
*/ | ||
unsetUnderline: () => ReturnType, | ||
unsetUnderline: () => ReturnType | ||
} | ||
@@ -70,11 +70,17 @@ } | ||
return { | ||
setUnderline: () => ({ commands }) => { | ||
return commands.setMark(this.name) | ||
}, | ||
toggleUnderline: () => ({ commands }) => { | ||
return commands.toggleMark(this.name) | ||
}, | ||
unsetUnderline: () => ({ commands }) => { | ||
return commands.unsetMark(this.name) | ||
}, | ||
setUnderline: | ||
() => | ||
({ commands }) => { | ||
return commands.setMark(this.name) | ||
}, | ||
toggleUnderline: | ||
() => | ||
({ commands }) => { | ||
return commands.toggleMark(this.name) | ||
}, | ||
unsetUnderline: | ||
() => | ||
({ commands }) => { | ||
return commands.unsetMark(this.name) | ||
}, | ||
} | ||
@@ -81,0 +87,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
17300
11
246
19