How to use the tiptap-extensions.OrderedList function in tiptap-extensions

To help you get started, we’ve selected a few tiptap-extensions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ditojs / dito / packages / admin / src / types / TypeMarkup.vue View on Github external
marks.italic && new Italic(),
        marks.underline && new Underline(),
        marks.strike && new Strike(),
        marks.small && new Small(),
        marks.code && new Code(),
        marks.link && new LinkWithTitle(),

        // schema.nodes:
        nodes.blockquote && new Blockquote(),
        nodes.codeBlock && new CodeBlock(),
        new HardBreak(), // TODO: Should this always on?
        nodes.heading && new Heading({ levels: nodes.heading }),
        nodes.horizontalRule && new HorizontalRule(),
        (nodes.orderedList || nodes.bulletList) && new ListItem(),
        nodes.bulletList && new BulletList(),
        nodes.orderedList && new OrderedList(),
        // TODO:
        // nodes.todoList && new TodoItem(),
        // nodes.todoList && new TodoList(),

        // schema.tools:
        tools.history && new History()
      ].filter(extension => !!extension)
    },
github area17 / twill / frontend / js / components / WysiwygTiptap.vue View on Github external
break
          }
          case 'link': {
            extensions.push(new Link())
            break
          }
          case 'blockquote': {
            extensions.push(new Blockquote())
            break
          }
          case 'bullet': {
            extensions.push(new BulletList())
            break
          }
          case 'ordered': {
            extensions.push(new OrderedList())
            break
          }
          case 'code': {
            extensions.push(new Code())
            break
          }
          case 'code-block': {
            extensions.push(new CodeBlock())
            break
          }
          case 'table': {
            extensions.push(new Table({
              resizable: false
            }))
            extensions.push(new TableHeader())
            extensions.push(new TableCell())
github Human-Connection / Human-Connection / webapp / components / Editor / defaultExtensions.js View on Github external
export default function defaultExtensions(component) {
  const { placeholder, $t, $apollo } = component
  return [
    new Heading(),
    new HardBreak(),
    new Blockquote(),
    new BulletList(),
    new OrderedList(),
    new HorizontalRule(),
    new Bold(),
    new Italic(),
    new Strike(),
    new Underline(),
    new Link(),
    new Heading({ levels: [3, 4] }),
    new ListItem(),
    new Placeholder({
      emptyNodeClass: 'is-empty',
      emptyNodeText: placeholder || $t('editor.placeholder'),
    }),
    new Embed({
      onEmbed: async ({ url }) => {
        const {
          data: { embed },