Ticket #41475: 41475.diff
File 41475.diff, 873 bytes (added by , 6 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wordpress/plugin.js
614 614 editor.on( 'preInit', function() { 615 615 var validElementsSetting = '@[id|accesskey|class|dir|lang|style|tabindex|' + 616 616 'title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],' + // Global attributes. 617 ' i,' + // Don't replace <i> with <em> and <b> with<strong> and don't remove them when empty.618 ' b,' +617 'em,' + // Don't replace <em> and <strong> and don't remove them when empty. 618 'strong,' + 619 619 'script[src|async|defer|type|charset|crossorigin|integrity]'; // Add support for <script>. 620 620 621 621 editor.schema.addValidElements( validElementsSetting );