wp_editor saving to database, but not displaying content on refresh
Found what I was looking for here – wp_editor textarea value not updating Better late than never!
Found what I was looking for here – wp_editor textarea value not updating Better late than never!
Try: $MySITE = ‘This is my site: <a href=”‘ . esc_url(‘http://www.ciusan.com’) . ‘”>Ciusan</a>’; wp_editor($MySITE, ‘CNB_Content’, $settings = array(‘media_buttons’ => false,) );
So, after discussing this in the #core channel on Slack, got notified the embed and wordcount only work for posts (and CPTs).
I ended up just using ACF for this. I created a message field, and then displayed it on post screens below the editor, and on the visual editor widget for the plugin I was using. Not ideal in terms of formatting or placement, but good enough.
Turns out that the output from wp_editor is safe to save to a database. It needs passing through stripslashes() before echoing into HTML.
Is there a way to install a drop-down with all site pages in WP-Editor?
You would need to edit the plugin and insert an instance of the wp_editor instead of that textarea. Refer to the wp_editor function reference.
While i didn’t exactly look into TinyMCEs code, my assumption is the following: Without using the above code, TinyMCE closes the active p-tag and opens another one on pressing Enter. When you use the above code, this is replaced by NOT opening any p-tags and just inserting tags when you press Enter. The Alignment-Buttons probably … Read more
WordPress textual editor problem with new line
automatically apply clear formating when pasting text on editor