Giter Site home page Giter Site logo

Comments (3)

maximebj avatar maximebj commented on June 16, 2024

I can reproduce the issue, and it's very annoying.
Also I use a light version of the Gutenberg code to get the headings (the process that initially list all headings in the top of the editor).
For now it cannot list heading in groups and columns. So I need to improve this a lot.

It would be awesome if such a block finishes in the core.

from agb.plugin.

maximebj avatar maximebj commented on June 16, 2024

Tell me if a solution shows up because it's beyond my coding level!

from agb.plugin.

ZebulanStanphill avatar ZebulanStanphill commented on June 16, 2024

@maximebj My table of contents block PR for the Gutenberg project is now in as good a state as it can get without additional APIs being introduced. It doesn't have the undo problem, and really, the only problem it does have is an edge-case issue with <!--nextpage--> tags not being counted correctly in the editor (the front end is fine), which I don't think your implementation even attempts to handle in the first place.

Because of the aforementioned edge-cases, I've avoided merging the block into core, but I think the implementation is fine for a plugin, so feel free to copy anything from my implementation to improve or fix your own.

from agb.plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.