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 TinyMCE setting 'Verify HTML' is ignore if unchecked as the setting value returns 0
but the TinyMCE check is === false
, which returns false for 0
.
Simple fix, change line #183 of tinymce.inc to:
$settings['verify_html'] = (bool) $config['verify_html'];
Cheers,
Deciphered,
Comment | File | Size | Author |
---|---|---|---|
#6 | wysiwyg.master.type-agnostic.1153458.patch | 1.01 KB | TwoD |
#3 | wysiwyg.master.tinymce.verify_html.1153458.3.patch | 456 bytes | TwoD |
#1 | wysiwyg.master.tinymce.verify_html.1153458.patch | 1005 bytes | TwoD |
Comments
Comment #1
TwoDCommitted the patch below to all major branches. The -dev snapshots will be updated within 12h and this will be part of the next official releases.
Thanks!
Comment #2
sunDoes this only apply to verify_html and not to the other settings?
If so, we should add an inline comment, so no one mistakenly removes the (bool) in the future.
Powered by Dreditor.
Comment #3
TwoDWhat I could tell from the code, only verify_html is compared using ===, the rest just use
if (setting)
.Comment #4
sunA super-tiny hint that the type-agnostic comparison (btw, calling things properly is better than code in a sentence ;)) only exists for this setting would be just lovely :)
E.g.,
"TinyMCE performs a type-agnostic comparison on this particular setting."
(or similar)
Powered by Dreditor.
Comment #5
TwoDI just copied the comment from CKEditor. or wherever it was from. I'm not at home now, mind taking care of it?
Comment #6
TwoDHow about this?
Changed the CKEditor comment to match.
Comment #7
sunThanks for reporting, reviewing, and testing! Committed to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.