Add the following to your theme functions.php:
function fb_change_mce_options($initArray) {
$ext="script[charset|defer|language|src|type]";
if ( isset( $initArray['extended_valid_elements'] ) ) {
$initArray['extended_valid_elements'] .= ',' . $ext;
} else {
$initArray['extended_valid_elements'] = $ext;
}
return $initArray;
}
add_filter('tiny_mce_before_init', 'fb_change_mce_options');
Related Posts:
- Add A Tag To A Post Through JavaScript In Gutenberg UI?
- Suddenly extra hex string in tags
- CDATA removing new line in script tag in wordpress
- Change (replace) tags to tags
- Drodown list return issue
- “Uncaught SyntaxError: Cannot use import statement outside a module” when importing ECMAScript 6
- Failed to load resource: the server responded with a status of 404 (Not Found)
- How to reload a page using JavaScript
- How can I do string interpolation in JavaScript?
- How to round to at most 2 decimal places, if necessary?
- Invariant Violation: Objects are not valid as a React child
- How to play audio?
- How do I test for an empty JavaScript object?
- Tallest Unicode character?
- How to solve ‘Redirect has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header’?
- jQuery setTimeout() Function [duplicate]
- Nested JSON objects – do I have to use arrays for everything?
- How to find the sum of an array of numbers
- JavaScript null check
- Remove Object from Array using JavaScript
- webpack: Module not found: Error: Can’t resolve (with relative path)
- Pure JavaScript Send POST Data Without a Form
- Remove duplicate values from JS array
- Add days to JavaScript Date
- HTML5 Local storage vs. Session storage
- What does href expression do?
- Give a value to an ng-model=”searchText” input based on list item clicked in Angular JS
- Expressjs / Node.js – res.redirect() not loading page
- Using async/await with a forEach loop
- How to check if two arrays are equal with JavaScript?
- What is causing the error `string.split is not a function`?
- Does JavaScript have a built in stringbuilder class?
- JQuery $(“#content”).append not working
- What is the difference between null and undefined in JavaScript?
- Pass react component as props
- How to fix Cannot find module ‘typescript’ in Angular 4?
- Origin null is not allowed by Access-Control-Allow-Origin
- using jQuery $(this).addClass not working, simple code not working
- What’s “this” in JavaScript onclick?
- how to use react require syntax?
- document.getElementById(id).focus() is not working for firefox or chrome
- How to get height of div in px dimension
- jQuery: Uncaught Error: Syntax error, unrecognized expression
- What is the difference between String.slice and String.substring?
- How to use in jQuery :not and hasClass() to get a specific element without a class
- Crop the image using JavaScript
- What is the best way to remove a table row with jQuery?
- Adjust width and height of iframe to fit with content in it
- document.getElementbyId() returning null
- How to allow CORS in react.js?
- Only on Firefox “Loading failed for the script with source”
- How do you use a variable in a regular expression?
- How to embed a youtube playlist with a sidebar
- How to add a button dynamically using jquery
- External JavaScript Not Running, does not write to document
- Create a simple 10 second countdown
- Generate a Hash from string in Javascript
- jQuery if Element has an ID?
- Get name of object or class
- How to create checkbox inside dropdown?
- Find a value in an array of objects in Javascript [duplicate]
- What does `node –harmony` do?
- How do I include js without register/enqueue?
- Admin Bar menu item that executes Javascript but does not reload the page?
- wp_customize_support_script – do I need it?
- Customizer: When to use customize_preview_init VS customize_controls_enqueue_scripts
- Post to WordPress using REST API from external site
- Set current tab on a Gutenberg TabPanel component from outside that component
- Does wp_localize_script call a Javascript Function or Simply Pass PHP Parameters to It
- How to remove p / br elements from gutenbergs editor
- contact form 7 repeatable fields calculations [closed]
- Listening change event of taxonomy term checkboxes in Gutenberg editor
- Search for a keyword across post types in a Gutenberg component
- wp_enqueue_script not loading my custom js file
- print script on wordpress header after user registered
- Load external javascript files
- Javascript alert appears before tag
- Add captcha validation to my custom form for Frontend posting
- AddThis Sharing Bar Not Displaying on Custom Page Template – JS conflict?
- Bootstrap bundle present in page source but not working
- Web cover page open when button clicked
- Add JavaScript-Library “Fitty” to WordPress
- Replace script attr or link
- Access checks with custom REST endpoints and backbone
- Remove escape characters from JSON string pulled from a database
- How to pass data to javascript in custom widget class
- WP Gutenberg – custom block with two content fields
- jQuery + more won’t load in header
- How to add additional JavaScript code [duplicate]
- JavaScript errors
- Contact form 7 hide and show fields depending up on the condition [closed]
- wp_enqueue has a resource but doesn’t generate a script tag [duplicate]
- Javascript not working on index.php but it is working on single post’s page
- Unable to change the location of a file
- Why is this script not working?
- Astra Mobile Cart Drawer is blank on home page
- How do I expose the current logged in users name/etc to javascript?
- allow multi carousel in same page
- How to get selected category objects in the block editor?
- How to include block style variations for blocks in posts dynamically rendered via the Interactivity API