id and class in div tags in html view for non super admin
-
I’m posting this in multi-site since it only impacts users that are not super-admins. it impacts users that are admins of their sites, therefore leading me to believe this is specific Multisite behavior.
None of my users with any privileges, going up to administrators on their site can add id or class in html elements in the html view of tinymce. even thought I have this code which I believe allows it:
function addabitofclass( $tags ) {
global $allowedposttags;
foreach( $allowedposttags as $tag => $attr ) {
$attr[ ‘class’ ] = array();
$attr[ ‘id’ ] = array();
$attr[ ‘style’ ] = array();
$allowedposttags[ $tag ] = $attr;
}
return $allowedposttags;
}
add_filter( ‘edit_allowedposttags’, ‘addabitofclass’ );as a sidenote, what happens is that the element stays there with all the parameters stripped out.
Is there something that overwrites it for multisite? What can I do to let them use certain params? (I understand why there are restrictions and we don’t want them to have full access to put in script and iframes and the like, but I feel comfortable with my user base giving them these)
Thank you in advance,
-S
- The topic ‘id and class in div tags in html view for non super admin’ is closed to new replies.