Skip to content

Anchor headings, outlines, table of content for tiptap editor

Notifications You must be signed in to change notification settings

vtechguys/tiptap-anchor-heading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anchor Heading

A tiptap extension to allow anchor your headings,and make it easy to create outlines.

Features:

  • Scroll/Focus to anchor
  • Unique anchor

Outlines

AnchorHeading.configure({
  // heading levels allowed
  levels: [1, 2, 3],
  onAnchorUpdate(anchorIds) {
    // runs and gives you list of anchorIds, 
    // whenever there is any update made to anchors
  }
})

editor.commands.focusAnchor(anchorId); // focuses the anchor into the view

About

Anchor headings, outlines, table of content for tiptap editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published