How to use the tiptap-extensions.Strike 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
createExtensions() {
      const {
        marks = {},
        nodes = {},
        tools = {}
      } = this.schema
      return [
        // schema.marks:
        marks.bold && new Bold(),
        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(),
github area17 / twill / frontend / js / components / WysiwygTiptap.vue View on Github external
})
            extensions.push(new Heading({
              levels: levels
            }))
            break
          }
          case 'bold': {
            extensions.push(new Bold())
            break
          }
          case 'italic': {
            extensions.push(new Italic())
            break
          }
          case 'strike': {
            extensions.push(new Strike())
            break
          }
          case 'underline': {
            extensions.push(new Underline())
            break
          }
          case 'link': {
            extensions.push(new Link())
            break
          }
          case 'blockquote': {
            extensions.push(new Blockquote())
            break
          }
          case 'bullet': {
            extensions.push(new BulletList())