mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
TinyMCE: restore support for <script>
tags.
See #33083. Built from https://develop.svn.wordpress.org/trunk@33414 git-svn-id: http://core.svn.wordpress.org/trunk@33382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de86d6b18d
commit
87aaf3bcfe
@ -485,8 +485,13 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||
});
|
||||
|
||||
editor.on( 'preInit', function() {
|
||||
// Don't replace <i> with <em> and <b> with <strong> and don't remove them when empty
|
||||
editor.schema.addValidElements( '@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],i,b' );
|
||||
var validElementsSetting = '@[id|accesskey|class|dir|lang|style|tabindex|' +
|
||||
'title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],' + // Global attributes.
|
||||
'i,' + // Don't replace <i> with <em> and <b> with <strong> and don't remove them when empty.
|
||||
'b,' +
|
||||
'script[src|async|defer|type|charset|crossorigin|integrity]'; // Add support for <script>.
|
||||
|
||||
editor.schema.addValidElements( validElementsSetting );
|
||||
|
||||
if ( tinymce.Env.iOS ) {
|
||||
editor.settings.height = 300;
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3-beta4-33413';
|
||||
$wp_version = '4.3-beta4-33414';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user