@tiptap/extension-gapcursor
Advanced tools
Comparing version 2.3.2 to 2.4.0
import { Extension, callOrReturn, getExtensionField } from '@tiptap/core'; | ||
import { gapCursor } from '@tiptap/pm/gapcursor'; | ||
/** | ||
* This extension allows you to add a gap cursor to your editor. | ||
* A gap cursor is a cursor that appears when you click on a place | ||
* where no content is present, for example inbetween nodes. | ||
* @see https://tiptap.dev/api/extensions/gapcursor | ||
*/ | ||
const Gapcursor = Extension.create({ | ||
@@ -5,0 +11,0 @@ name: 'gapCursor', |
@@ -7,2 +7,8 @@ (function (global, factory) { | ||
/** | ||
* This extension allows you to add a gap cursor to your editor. | ||
* A gap cursor is a cursor that appears when you click on a place | ||
* where no content is present, for example inbetween nodes. | ||
* @see https://tiptap.dev/api/extensions/gapcursor | ||
*/ | ||
const Gapcursor = core.Extension.create({ | ||
@@ -9,0 +15,0 @@ name: 'gapCursor', |
@@ -5,3 +5,4 @@ import { Extension, ParentConfig } from '@tiptap/core'; | ||
/** | ||
* Allow gap cursor | ||
* A function to determine whether the gap cursor is allowed at the current position. Must return `true` or `false`. | ||
* @default null | ||
*/ | ||
@@ -16,2 +17,8 @@ allowGapCursor?: boolean | null | ((this: { | ||
} | ||
/** | ||
* This extension allows you to add a gap cursor to your editor. | ||
* A gap cursor is a cursor that appears when you click on a place | ||
* where no content is present, for example inbetween nodes. | ||
* @see https://tiptap.dev/api/extensions/gapcursor | ||
*/ | ||
export declare const Gapcursor: Extension<any, any>; |
{ | ||
"name": "@tiptap/extension-gapcursor", | ||
"description": "gapcursor extension for tiptap", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/core": "^2.3.2", | ||
"@tiptap/pm": "^2.3.2" | ||
"@tiptap/core": "^2.4.0", | ||
"@tiptap/pm": "^2.4.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "peerDependencies": { |
@@ -12,3 +12,4 @@ import { | ||
/** | ||
* Allow gap cursor | ||
* A function to determine whether the gap cursor is allowed at the current position. Must return `true` or `false`. | ||
* @default null | ||
*/ | ||
@@ -27,2 +28,8 @@ allowGapCursor?: | ||
/** | ||
* This extension allows you to add a gap cursor to your editor. | ||
* A gap cursor is a cursor that appears when you click on a place | ||
* where no content is present, for example inbetween nodes. | ||
* @see https://tiptap.dev/api/extensions/gapcursor | ||
*/ | ||
export const Gapcursor = Extension.create({ | ||
@@ -29,0 +36,0 @@ name: 'gapCursor', |
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
14181
172