question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BulletList and OrderedList Extensions throwing Console Error

See original GitHub issue

Describe the bug When adding the following Extensions to an TipTap Editor Instance, the complete Menubar is broken (not displayed)

Steps to Reproduce / Codesandbox Example Steps to reproduce the behavior:

  1. Import BulletList and/or OrderedList Extension
  2. Implement them like in examples
  3. Reload the Component containing the Editor

JS Code:

`import {Editor, EditorContent, EditorMenuBar} from ‘tiptap’ import { Bold, Heading, Italic, Underline, Strike, Code, BulletList, } from ‘tiptap-extensions’

export default { name: “Description”, components: { EditorMenuBar, EditorContent }, data() { return { editor: null, content: ‘’ } }, mounted() { this.editor = new Editor({ extensions: [ new Bold(), new Italic(), new Underline(), new Strike(), new Code(), new BulletList(), new Heading({ levels: [1, 2, 3, 4, 5, 6] }) ], content: “”, onUpdate: ({state, getHTML, getJSON, transaction}) => { this.$emit(‘set-content’, getHTML()) } }) }, beforeDestroy() { this.editor.destroy() } }`

Template:

<editor-menu-bar :editor="editor" v-slot="{ commands, isActive }"> <div> <button type="button" :class="{ 'is-active' : isActive.bold() }" v-on:click="commands.bold"> Bold </button> <button type="button" :class="{ 'is-active' : isActive.italic() }" v-on:click="commands.italic"> Italic </button> <button type="button" :class="{ 'is-active' : isActive.underline() }" v-on:click="commands.underline"> Underline </button> <button type="button" :class="{ 'is-active' : isActive.strike() }" v-on:click="commands.strike"> Strike </button> <button type="button" :class="{ 'is-active' : isActive.code() }" v-on:click="commands.code"> Code </button> <button type="button" :class="{ 'is-active' : isActive.heading({level: 1}) }" v-on:click="commands.heading({level:1})"> H1 </button> <button type="button" :class="{ 'is-active' : isActive.heading({level: 2}) }" v-on:click="commands.heading({level:2})"> H2 </button> <button type="button" :class="{ 'is-active' : isActive.heading({level: 3}) }" v-on:click="commands.heading({level:3})"> H3 </button> <button type="button" :class="{ 'is-active' : isActive.heading({level: 4}) }" v-on:click="commands.heading({level:4})"> H4 </button> <button type="button" :class="{ 'is-active' : isActive.heading({level: 5}) }" v-on:click="commands.heading({level:5})"> H5 </button> <button type="button" :class="{ 'is-active' : isActive.heading({level: 6}) }" v-on:click="commands.heading({level:6})"> H6 </button> <button type="button" :class="{ 'is-active' : isActive.bullet_list() }" v-on:click="commands.bullet_list()"> Bullet List </button> </div> </editor-menu-bar> <editor-content class="form-control" :editor="editor"></editor-content>

Expected behavior Bullet List and Ordered List should be usable in Editor

Environment

  • OS: macOS 10.15.7
  • Browser Chrome
  • Version 86
  • Mobile / Desktop: Desktop

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mennen-onlinecommented, Nov 14, 2020

This Bug can be closed - your guess was right 😃 Thx

1reaction
mennen-onlinecommented, Nov 13, 2020

Your guess would be logical why I got the message that ListItem was not found … testing it right now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

A bulleted list or a numbered list becomes misaligned ...
Describes an issue in which bulleted or numbered lists become misaligned when a document is saved in Word 2007.
Read more >
GitLab Flavored Markdown (GLFM)
For example, in Markdown, an unordered list looks like this: ... A direct file link points to a file extension for a file,...
Read more >
VS Code API | Visual Studio Code Extension API
This page lists all VS Code APIs available to extension authors. API namespaces and classes. This listing is compiled from the vscode.d.ts file...
Read more >
How can I get file extensions with JavaScript?
If the substring is not found method returns -1 . The "unacceptable" positions of dot in the filename are -1 and 0 ,...
Read more >
Node.js v19.3.0 Documentation
All errors thrown by the node:assert module will be instances of the ... through the list of functions passed to tracker.calls() and will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found