visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
290 stars 46 forks source link

Blocks - Controller expose method: getHeadings() #140

Closed adrian-moisa closed 2 years ago

adrian-moisa commented 2 years ago

Similar to getMarkers(). Maybe there's a way to make the markers code more generic to work for multiple attributes. We need a list of Headings and their rectangles such that we can attach custom widgets for headings. We will need to cap the headings to a certain string length. Using the attached widgets we can easily link character counters to the headings. Also the same data can be used to scroll to a heading.

Ideally we would have a generic method that can intercept any type or styling getElementsByAttirbute('h1') // ul, bold, etc. This method would be far more useful then just headings.

Join on discord to get advice and help or follow us on YouTube Visual Coding to learn more about the architecture of Visual Editor and other Flutter apps.

adrian-moisa commented 2 years ago

Completed by Sebi