Maybe you should just add a custom field to accept the url itself, in stead of the wp_editor textarea; then append the video embed after you work with the input.
Let me know if you need any help setting that up.
OR:
You could add a separete textarea to accept just comma separated or line-break separated urls (Because you stated below that you might need mulitple video embeds)
Here is some code to use while saving that will clean up the textarea input:
if ( isset( $_REQUEST['your_url_list'] ) ):
$input = $_REQUEST['your_url_list'];
$data = preg_split("/[\r\n,]+/", $input, -1, PREG_SPLIT_NO_EMPTY);
$option_list = array();
foreach( $data as $d )
$option_list[] = trim( $d );
update_post_meta( $post_id, 'your_url_list', maybe_serialize( $option_list ) );
endif;
Related Posts:
- wp_editor textarea value not updating
- Sanitize content from wp_editor
- Get first video from the post (both embed and video shortcodes)
- Show Font Awesome Icons In WP Post Editor
- ‘Add Media’ button doesn’t work when editor is initialized from javascript
- Why are there two diffrent full screen editors?
- How to set WYSIWYG editor width within wp_editor() function?
- Shortcode attribute escaping
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- wp_editor not adding paragraphs despite wpautop being set to true
- How to add new embed handler not supported by oembed
- WP Editor strips input placeholder attribute
- How to remove the “Path” line in the WordPress Editor for end users who are submitting a form?
- Remove specific buttons from wp_editor()
- WP Editor does not Initialize Correctly When Form Elements are Removed from the DOM
- oEmbed vimeo with add_query_arg parameters not inserted to HTML
- Auto-resize when writing with Custom post WP editor
- Changing the default WP editor font and size
- WP_Editor – Setting render location on page
- How to pass the wp_editor content using jquery
- wp_insert_post iframe missing
- How do I prevent the wp_editor from loading outside container?
- How to check If Oembed is empty or not
- Gutenberg – Custom blocks not working as expected?
- Quotes being escaped inside wp_editor when saved with wp_kses_post
- Is there a built in function to see if a URLis oEmbed Compatible?
- Video Embed with Captions in Turkish
- Save wp_editor() content as option
- Change the name of the wp_editor tab “html/text”
- Updating post content on the front end
- Target wp_editor buttons to add a tooltip
- Using default wordcount javascript in WordPress on custom wp_editor() areas
- wpautop is not working when displaying content saved using wp_editor in a custom meta box
- Removing line breaks when in text view with wp_editor
- Why is my oembed function modifying Twitter embed?
- oEmbed not working in WordPress
- How to add custom button in wp_editor
- Edit Page blank
- how to set max-length at the wp_editor
- How can I remove the first video from a post and feature it?
- Like to convert textarea into using wp_editor
- Add default page editor to an admin settings page
- Can I use wp_editor() to create a second instance of the editor in my post page?
- How would I load wp_editor someehere else other than the admin area?
- Viddler oEmbed not working with specified width
- wp.editor.initialize not working as expected
- wp_editor in text mode only(without TinyMCE)
- wp-editor is empty on first submit
- How WordPress remembers which active editing modes are used?
- how to display wp_editor in a page
- wp editor formatting
- wp_editor visual tab in meta box doesn’t show content
- wp_editor doesn’t save styling
- How to use wordpress text editor in php page
- Looking to Customize YouTube Video Embeds
- Add class to oEmbed video from within post editor?
- textarea_name is not working with wp_editor
- How Can i print the wp_editor field content?
- How to add set featured image button in wp_editor()?
- WP_editor problem
- Different size video display for category page (smaller) & detail page (larger)
- Displaying content on the website frontend that was uploaded using wp_editor?
- Free Alternate WordPress Editor (without requiring plugins)
- Strange formatting issue in text editor after WP update from 4.9.3 to 5.3.1
- Embed video from streamtape using direct link
- Bold button gets unchecked on enter click when bullet button is also selected in WP Editor
- How can I apply preventDefault() to the click on CodeMirror-hints?
- WordPress editor issues
- automatically apply clear formating when pasting text on editor
- WordPress textual editor problem with new line
- Use ENTER, not SHIFT+ENTER to Insert Line Break in WP editor
- How to replace textarea in plugin with wp_editor
- Is there a way to install a drop-down with all site pages in WP-Editor?
- wp_editor returning invalid html
- Adding text above the editor
- Embed and word Count not working for wp_editor instance
- How to make this clean?
- wp_editor saving to database, but not displaying content on refresh
- How to stop wp-editor() overwriting my HTML?
- Save values from foreach loop in wp_editor
- ThinkTanking for design [closed]
- Wp_editor bug with foreach()?
- Convert textarea into TinyMCE
- load wp_editor without wp_footer
- How can I open WP rich editor within colorbox in the front end?
- front post submit using wp_editor
- Why am I not able to save / update data in wp_editor?
- Replacing a textarea in post meta with wp_editor() WordPress
- Fallback for oEmbed content
- Displaying oEmbed errors?
- Modifying the main editor priority
- Show only oldest post by author
- Any way to use a custom Parameter for vimeo embed without using an iframe?
- How to edit 404 content via wp editor?
- How can I stop a function from encoding an entity?
- wp_editor in metabox not working
- Multiple wp_editor instances in custom post type using Ajax
- wp-editor-area textarea disapear on cancel-comment-reply-link click
- How to fetch all videos in custom page which uploaded in wp-admin (Media) in wordpress
- Choopy Video Playback in a popup using Artiss Youtube Embed [closed]