WordPress.org

Forums

TinyMCE Advanced
[resolved] Editors and list style options (3 posts)

  1. sqhendr
    Member
    Posted 1 year ago #

    I've checked the "List Style Options" checkbox in the settings, and they work just fine for Administrators. However, if an Editor uses them (they can see them, and they get applied in the editor), they are filtered out after saving/publishing. Is there a setting I need to apply to allow Editors to use this function?

    https://wordpress.org/plugins/tinymce-advanced/

  2. sqhendr
    Member
    Posted 1 year ago #

    Turns out that the problem was the wp_kses filters that are applied to everyone except Administrators. These filters have a set of allowed css style attributes, but strip everything else out. After some searching around, I found that there is a safe_style_css hook that allows you to add to the array of allowed style attributes. I used that hook to add "list-style-type" to the allowed attributes, and now Editors can use this function properly.

  3. Andrew Ozz
    WordPress Dev
    Plugin Author

    Posted 1 year ago #

    Yeah, on non-multisite only admins and editors can post "unfiltered html". On multisite only superadmins can.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TinyMCE Advanced
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.