• Resolved copylefter

    (@copylefter)


    The plugin is almost perfect. I like the minimalist approach. But the toc block as whole entity including title couldn’t be styled since it doesn’t have own css class and it blocking standard tool to add class from Gutenberg editor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marc Toensing

    (@marcdk)

    Hi,

    I looked into this. Currently, SimpleTOC returns a headline (<h2>) and an unordered list (

      ) as html output. I would expect that a surrounding element like a div would wrap around the h2 and ul like this;

      <div class="myeditorclass">
      <h2>Table of Contents</h2>
      <ul>
      <li></li>
      </ul>
      </div>

      So, this is not ideal and against the ultra-minimalistic approach. Any idea how to solve this?

    Plugin Author Marc Toensing

    (@marcdk)

    Fixed in version 2.9. The div with the additional class(es) only gets wrapped around the html output if a class is provided and set in the backend.

    Now I am curious to see the “perfect” review. ??

    • This reply was modified 3 years, 11 months ago by Marc Toensing.
    Thread Starter copylefter

    (@copylefter)

    Wow, you are fast as a comet!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t add class for the block’ is closed to new replies.