Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
You may want to consider using the visibility_api module for path/role/css selector visibility. This module is simply an abstracted API to centralize both php and js widget visibility.
Comments
Comment #1
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedVisibility API actually doesn't help in this case. I have rather set an option to let the user specify textarea IDs to attach widgeditor with.