The text goes white when the id
attribute ($editor_id
) contains []
. They are not allowed here.
Make sure the second argument for wp_editor
does not contain []
, and the text becomes visible again. I have reported that regression with a test case on ticket #26778.
To use brackets in the name
attribute, use textarea_name
in the settings
parameter.
Example
$editor_id = 'my_editor_1';
$editor_name="my_editor[1]";
$settings = array (
'tabindex' => FALSE,
'editor_height' => 150,
'resize' => TRUE,
'textarea_name' => $editor_name
);
wp_editor( $post->post_content, $editor_id, $settings );
Related Posts:
- How to edit content before post update
- Using TinyMCE in plugin?
- How to load wp_editor via AJAX
- How to call plugin path in JS?
- How can I make content disappear when a user logs in?
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How to use wp-ajax in wp-cron
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- How can I make the “Preview Post” button save and preview in the same window?
- Creating an Exit Confirmation Popup
- Difference between register_block_type & wp.blocks.registerBlockType
- Pass a php string to a javascript variable
- add mediaelement.js plugins into WordPress video player control bar
- Shortcode button dosent work for all posts. Work for first post only
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- wordpress site | All-in-one-cufon IE Issue
- How to get the element ID from new menu list that added with add_filter()?
- Override Plugin Script Fucnction in WordPress
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- How to insert HTML/JavaScript form into WordPress page? [closed]
- accessing wp.media api from a tinymce plugin
- How to load wp_editor via AJAX
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- Using window.onload with Ubermenu
- Redirect to another page using contact form 7? [closed]
- JavaScript in a PHP plugin
- wordpress add_action() issue in ajax call
- Pass user role to javascript code inside body
- get specific value of a array | PHP
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Background Music WP [closed]
- How to use custom Javascript code inside a plugin?
- Adding a simple Javascript file with a plugin
- Social share buttons text shows up on post excerpts
- Plugin Admin panel checkbox unchecked after submit
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- Custom Plugin scripts from admin working in frontend
- Code for unique user visit count on every page WordPress
- Ajax call not working in wordpress through a plugin
- Send Array from JS to php file then insert it in wp database through a plugin
- How to apply to hide TinyMCE (wp_editor) on button click
- Possible way of having multiple Gutenberg instances for a page?
- Woocommerce add products to cart
- Calling PHP function with AJAX
- Why does my custom plugin only function correctly once per page?
- How to get a specific string from a url
- How can I create a secure file download in WordPress?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- Problem with wordpress has_action() function
- Multiple image selection custom widget
- Custom Field used to allow a Free Story; no longer works
- Create a form and have custom menu display based on user answers?
- Woocommerce – Change variations output
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- Speeding up WordPress on a Local Network
- Conditional Fields depending on checkboxes
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Number format in thousands on highcharts in wpdatatable plugin
- Embed Javascript code to registered users only
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Creating a user ‘add custom field’ section
- Media Playlist Plugin
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- How do I convince this button to do something when it is clicked?
- Can’t insert files in other inputs
- How do I output user_registered time in my correct timezone?
- How to tweak a plugin without preventing it from updating
- How to create post comparison in wordpress
- Adding a script & php to functions.php
- how to show selected options drop down menu values in attributes field in after saving post.php
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- How do I call an action hook into wp_ajax hook callback function
- Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
- From where come that JS files in ?
- How make a php script run only with wp-cron
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Use wordpress plugin in codeigniter
- Only allowing some emails to create an account [closed]
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Return multiple values in a shortcode attribute
- Programatically upload a file to be stored inside blob field in database, NOT on filesystem
- Make plugin php file called directly aware of WordPress?
- Next Previous Post in wordpress with previous / next link with title?
- Cannot Access Console
- Plugin error after installation
- woocommerce remove coupon link does not work
- How to insert datas in the table on wordpress?
- How to translate to spanish wordpress hardcoded content/files?
- Change custom rewrite rule when permalink is updated/changed
- Any method to make specific widget for every post and page?
- Find all strings between an enclosing shortcode
- PHP Creating a formula from mysql db values and db stored math operator
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Posts in Admin only display 1 Post instead of all Post in admin area
- WordPress Throwing Deprecated Errors on its own Files