Skip to content

Commit 29ec991

Browse files
authored
[5.1] tinymce hardening fix (#43176)
1 parent 8a3e608 commit 29ec991

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ public function display(string $name, string $content = '', array $attributes =
459459
'branding' => false,
460460
'promotion' => false,
461461

462+
// Hardened security
463+
'sandbox_iframes' => true,
464+
'convert_unsafe_embeds' => true,
465+
462466
// Specify the attributes to be used when previewing a style. This prevents white text on a white background making the preview invisible.
463467
'preview_styles' => 'font-family font-size font-weight font-style text-decoration text-transform background-color border border-radius outline text-shadow',
464468
]

0 commit comments

Comments
 (0)