tiptap-utils is an older, standalone JavaScript package providing a collection of general utility functions designed for the Tiptap editor. Its current stable version is 1.13.1, with its last release approximately five years ago. This package is distinct from the modern `@tiptap/core` (v2/v3) monorepo and its associated extensions, which now integrate many of the functionalities previously offered by `tiptap-utils` directly into the core library or specific extensions. As such, `tiptap-utils` does not adhere to the active and rapid release cadence of the current Tiptap ecosystem. Developers are generally advised to use the utilities provided by `@tiptap/core` for modern Tiptap implementations, as `tiptap-utils` may have compatibility issues with newer editor versions due to significant API changes.
npm install tiptap-utilsVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using `markIsActive` and `nodeIsActive` with an older Tiptap v1.x Editor instance to check the active state of marks and nodes.
For `@tiptap/core` v2/v3, use the built-in utility functions and methods provided by the `Editor` instance or the `@tiptap/core` package itself (e.g., `editor.isActive()`, `editor.getAttributes()`, `editor.chain().focus()`). Consult the official Tiptap v2/v3 documentation for current best practices.
Migrate to the equivalent functionalities offered by `@tiptap/core` (v2/v3) or relevant `@tiptap/*` extensions. This might require refactoring parts of your editor logic.
Always verify the specific package you are intending to use. If targeting `@tiptap/core` v2/v3, rely solely on the official documentation and packages prefixed with `@tiptap/`.
Ensure you are using `tiptap-utils` with a Tiptap v1.x editor. If using Tiptap v2/v3, use the built-in `editor.state` property and the `editor.isActive()` method directly on the editor instance instead of `tiptap-utils` functions.
Verify that `tiptap-utils` is installed correctly (`npm install tiptap-utils`). For ESM projects, use `import { markIsActive } from 'tiptap-utils';`. Ensure your bundler is configured to handle older CommonJS or UMD packages if necessary, though it's recommended to avoid this package entirely for modern projects.No dependency data recorded yet.