CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tiptap--extension-link

Link extension for tiptap rich text editor providing automatic link detection, paste handling, click behavior, and XSS protection.

88

1.23x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses the @tiptap/extension-link package's configuration options to control link behavior in a Tiptap editor. The focus is on proper usage of Link.configure() with the five core configuration options: autolink, openOnClick, linkOnPaste, HTMLAttributes, and defaultProtocol.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Link extension import",
      "description": "Correctly imports the Link extension from @tiptap/extension-link package",
      "max_score": 10
    },
    {
      "name": "Editor initialization",
      "description": "Properly initializes a Tiptap Editor instance with the Link extension in the extensions array",
      "max_score": 10
    },
    {
      "name": "Link.configure() usage",
      "description": "Uses Link.configure() method to pass configuration options to the Link extension",
      "max_score": 15
    },
    {
      "name": "Autolink configuration",
      "description": "Correctly uses the 'autolink' option to control automatic link detection based on the EditorConfig.enableAutolink parameter",
      "max_score": 15
    },
    {
      "name": "OpenOnClick configuration",
      "description": "Correctly uses the 'openOnClick' option to control click-to-open behavior based on the EditorConfig.enableClickOpen parameter",
      "max_score": 10
    },
    {
      "name": "LinkOnPaste configuration",
      "description": "Correctly uses the 'linkOnPaste' option to control paste URL conversion based on the EditorConfig.enablePasteLink parameter",
      "max_score": 10
    },
    {
      "name": "HTMLAttributes configuration",
      "description": "Correctly uses the 'HTMLAttributes' option to set default link attributes (target, rel, class) from EditorConfig.defaultLinkAttributes",
      "max_score": 15
    },
    {
      "name": "DefaultProtocol configuration",
      "description": "Correctly uses the 'defaultProtocol' option to specify the protocol for URLs without one, using the EditorConfig.defaultProtocol parameter",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-tiptap--extension-link

tile.json