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.
The edit functionality in the WYSIWYG plugin has some strange behaviors, particularly without Media WYSIWYG View Mode enabled. I don't think the functionality is necessary for Media to support, and the plugin would be much more straightforward if it were simply removed, so the attached patch does that.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2497453_04.patch | 1.6 KB | cweagans |
#3 | 2497453_03.patch | 1.51 KB | cweagans |
#1 | 2497453_01.patch | 1.46 KB | cweagans |
Comments
Comment #1
cweagansComment #2
Devin Carlson CreditAttribution: Devin Carlson commentedComment #3
cweagansGot a little excited when I was deleting code and took out a line I shouldn't have.
Comment #4
cweagansAdding @return on isNode() method.
Comment #5
Elijah LynnTechnically it is @return bool. But I think in this case it is actually just @return false since it doesn't ever return true.
https://www.drupal.org/coding-standards/docs#types
Comment #6
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team