Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@tiptap/extension-list-item
Advanced tools
@tiptap/extension-list-item is an extension for the Tiptap editor that provides functionality for working with list items. It allows you to create, manipulate, and manage list items within your rich text editor, supporting both ordered and unordered lists.
Creating List Items
This code demonstrates how to include the ListItem extension in a Tiptap editor instance, enabling the creation of list items.
import { ListItem } from '@tiptap/extension-list-item';
const editor = new Editor({
extensions: [
ListItem,
],
});
Nested List Items
This code shows how to initialize the editor with nested list items, demonstrating the extension's capability to handle nested lists.
import { ListItem } from '@tiptap/extension-list-item';
const editor = new Editor({
extensions: [
ListItem,
],
content: '<ul><li>Item 1<ul><li>Nested Item 1</li></ul></li></ul>',
});
Toggling List Items
This code snippet demonstrates how to toggle a list item using the chainable commands provided by Tiptap.
import { ListItem } from '@tiptap/extension-list-item';
const editor = new Editor({
extensions: [
ListItem,
],
});
// Toggle a list item
editor.chain().focus().toggleListItem().run();
prosemirror-schema-list is a ProseMirror schema extension that provides list item functionality similar to @tiptap/extension-list-item. It allows for the creation and manipulation of ordered and unordered lists within a ProseMirror editor. While it offers similar core functionalities, it requires more manual setup compared to the seamless integration provided by Tiptap extensions.
draft-js-list-plugin is a plugin for Draft.js that adds support for list items. It allows users to create and manage ordered and unordered lists within a Draft.js editor. Compared to @tiptap/extension-list-item, it is specific to Draft.js and may require additional configuration to achieve similar functionality.
quill-better-table is a Quill.js module that enhances table functionality, including support for list items within table cells. While it is not solely focused on list items, it provides similar list management capabilities within the context of tables. It is more specialized compared to the general list item support offered by @tiptap/extension-list-item.
Tiptap is a headless wrapper around ProseMirror – 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.
Documentation can be found on the Tiptap website.
Tiptap is open sourced software licensed under the MIT license.
2.0.0 (2023-03-29)
i
in defaultBlockAt
by @andreavaccari in https://github.com/ueberdosis/tiptap/pull/1315Color
extension to set the text color by @hanspagel in https://github.com/ueberdosis/tiptap/pull/1744this.value
to value
in the vue examples with v-model by @MiloLug in https://github.com/ueberdosis/tiptap/pull/1813ReactRenderer
types by @rfgamaral in https://github.com/ueberdosis/tiptap/pull/2011editor
dependency when registering BubbleMenuPlugin
by @ValentaTomas in https://github.com/ueberdosis/tiptap/pull/2018defaultOptions
with addOptions
by @philippkuehn in https://github.com/ueberdosis/tiptap/pull/2088CollaborationCursor
extension by @hanspagel in https://github.com/ueberdosis/tiptap/pull/2096enableInputRules
and enablePasteRules
by @aguingand in https://github.com/ueberdosis/tiptap/pull/2119setEditable
to the Editor documentation by @floriankrueger in https://github.com/ueberdosis/tiptap/pull/2199as
option and pass through to ReactRenderer by @jessicalc in https://github.com/ueberdosis/tiptap/pull/2213createView
by @BrianHung in https://github.com/ueberdosis/tiptap/pull/2212type="context"
tag by @duruer in https://github.com/ueberdosis/tiptap/pull/2240CharacterCount
extension by @philippkuehn in https://github.com/ueberdosis/tiptap/pull/2256element.current
from useEffect
in BubbleMenu
and FloatingMenu
by @ValentaTomas in https://github.com/ueberdosis/tiptap/pull/2297Level
for external use by @webri in https://github.com/ueberdosis/tiptap/pull/2354@tiptap/react
and @tiptap/core
as side effect free by @dcastil in https://github.com/ueberdosis/tiptap/pull/2361javascript:
pseudo-protocol by @phenax in https://github.com/ueberdosis/tiptap/pull/2646onBeforeStart
and onBeforeUpdate
handlers to the render function by @rfgamaral in https://github.com/ueberdosis/tiptap/pull/2628getTextSerializersFromSchema
helper, and fix typo in its name by @sjdemartini in https://github.com/ueberdosis/tiptap/pull/2750className
option and pass through to ReactRenderer by @anton-liubushkin in https://github.com/ueberdosis/tiptap/pull/2794Avoid mutating a prop directly
error message to reproduce by @HondryTravis in https://github.com/ueberdosis/tiptap/pull/2834@tiptap/extension-code-block-lowlight
by @enriquecastl in https://github.com/ueberdosis/tiptap/pull/2625whiteSpace
style for NodeViewWrapper
& NodeViewContent
by @EvitanRelta in https://github.com/ueberdosis/tiptap/pull/2884nodeInputRule
by @ahhshm in https://github.com/ueberdosis/tiptap/pull/2954flushSync
to microtask by @sampi in https://github.com/ueberdosis/tiptap/pull/3188editor.setEditable
to omit updates by @ZaymonFC in https://github.com/ueberdosis/tiptap/pull/3301nodePasteRule
find
type to most generic PasteRuleFinder
by @jiegillet in https://github.com/ueberdosis/tiptap/pull/3759createNodeFromContent
and other missing helpers by @jacksleight in https://github.com/ueberdosis/tiptap/pull/3558documentClear
plugin by @thecodrr in https://github.com/ueberdosis/tiptap/pull/3778FAQs
list item extension for tiptap
The npm package @tiptap/extension-list-item receives a total of 232,798 weekly downloads. As such, @tiptap/extension-list-item popularity was classified as popular.
We found that @tiptap/extension-list-item demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.