Sign in

Table of Contents Header in Tiny Editor

  • This topic has 2 replies, 2 voices, and was last updated 1 month, 2 weeks ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8918
    Avatar photov7web

    Hi,

    Could anyone point me in the right direction for changing the “Table of Contents” h3 header in the Tiny editor?

    It auto sets the header as a h3 tag which then lowers my website accessibility score because other post sub headers are h2 tags.

    Although I can highlight the “Table of Contents” text the editor will not let me change it from h3 to h2. I can change it in the html but as soon as I refresh the table of contents it goes back to a h3 header.

    Any ideas?

    #8943
    Avatar photoTomasz Dziuda

    Hi,

    You must override TinyMCE settings and change option: toc_header from “h3” to “h2”

    You can do it by override: https://getpublii.com/dev/how-to-add-custom-config-or-js-for-post-editor/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #8950
    Avatar photov7web

    Hi,

    You must override TinyMCE settings and change option: toc_header from “h3” to “h2”

    You can do it by override: https://getpublii.com/dev/how-to-add-custom-config-or-js-for-post-editor/

    Many thanks Tomasz

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.