What HTML attributes are allowed on a Tumblr post? (tinymce)

前端 未结 3 528
温柔的废话
温柔的废话 2021-01-06 10:15

When creating a Tumblr post, and using the HTML editor option, when I add specific HTML attributes to elements, the TinyMCE rich text editor strips nearly everything off.

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 11:04

    This was killing me too. And searching google for any tumblr dev help more complicated than "how do I edit text color", oy vey. I wouldn't wish it on anyone.

    Tumblr users don't have any control of the html or js that runs the control panel, and so can't add any files that alter TinyMCE configuration. But you can just turn it off. In the Dashboard tab of your Tumblr settings, you'll find a Text Editor section. Selecting plain html or Markdown will deactivate TinyMCE and allow you to post forms, data attributes, and any non-whitelist html to your heart's content.

提交回复
热议问题