One idea for the shortcode version, would be to add the custom class via the the native shortcode:
https://wordpress.stackexchange.com/questions/167749/...
then you could add it to your custom wrapper with:
add_filter( 'embed_oembed_html', function ( $html, $url, $attr, $post_ID) {
return sprintf(
'<figure class="video-container %s">%s</figure>',
isset( $attr['class'] ) ? esc_attr( $attr['class'] ) : '',
$html
);
}, 10, 4 );
Then you could e.g. add your own TinyMCE button with a custom form to generate this shortcode?
Related Posts:
- Remove inline linking tool
- How do you change the visual editor’s background color?
- How to get back distraction-free mode we had before WP 4.1?
- Get first video from the post (both embed and video shortcodes)
- WordPress Editor not getting youtube video preview
- How to enable the tag in WordPress posts and pages
- Visual editor not showing up
- Visual Editor Missing, Server-Side Problem, How Would You Debug It?
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- Resizing the width of the WYSIWYG editor
- Remove path from the create/edit a post view
- Can’t change the width of content in the visual editor
- How to add new embed handler not supported by oembed
- WordPress shortcut to switch from Visual to Text mode and vice versa
- How to enable user_can_rich_edit for guests?
- Any good desktop client for wordpress with support for google syntax highliter? [closed]
- Lost formatting after saving
- How-to stop wordpress from saving utf8 non-breaking space characters
- oEmbed vimeo with add_query_arg parameters not inserted to HTML
- How avoid WP editor to change by
- How To Hide The Visual And Html Editor Completely?
- Working With Visual Composer VC_Single_Image
- Visual Editor Background
- Is there a way to disable formatting shortcuts in 4.3?
- Adding image to visual editor popup for shortcode with wp.media and wp.mce: changing image duplicates shortcode
- How to ensure the visual editor doesn’t ruin my iframe?
- WMP Plugin not showing up in the plugin panel?
- wp_insert_post iframe missing
- How to check If Oembed is empty or not
- Visual Editor gone
- Convert this textarea to rich html format via wp_editor
- How to reset display of WYSIWYG editor
- Is there a built in function to see if a URLis oEmbed Compatible?
- Video Embed with Captions in Turkish
- How can I determine what mode the editor is in and when it changes?
- Lightbox Plus ColorBox plugin and auto playing YouTube video
- Editor background colour in full screen
- Disable pasting of images into wordpress editor
- Resizing the wordpress editor
- Line numbering on WordPress frontend
- Why the post content editor always expanded?
- Why is my theme is randomly stripping the tags out
- Remove inline styles from the_content?
- Dynamically add CSS to the visual editor
- Visual editor keeps stripping my tags
- Why is my oembed function modifying Twitter embed?
- oEmbed not working in WordPress
- WordPress Visual Mode Not Working – adding span code while clicking
- Edit page blank, control buttons missing
- How can I remove the first video from a post and feature it?
- Adding a button to the attachment page
- How to remove from hr in wordpress visual editor
- Automatically adds check on hide title and add paragraph when adding text
- In context click and edit: is it feasible?
- Viddler oEmbed not working with specified width
- WP as an HTML editor
- How to display shorter version of wp_editor?
- Define add_editor_style to specific post types?
- Want the visual style in wordpress
- How to remove some options in visual editor?
- Automatically replace   with space
- Can I still use Visual Composer Website Builder after upgrading to WordPress 5.0?
- Pull Youtube Link from 2nd WP_Editor
- Why is tinymce visual editor showing the background from my theme
- Line breaks changing to when switching between HTML and Visual tab!
- Different size video display for category page (smaller) & detail page (larger)
- How to add TinyMCE to a front-end textarea?
- ✓ Checkmark Character Encoding Issue In WordPress Editor
- Switching on edit
- Visual and Text tabs missing from Editor
- Square brackets at the end of a line cause line break to be skipped
- Embed video from streamtape using direct link
- How to hide the Text Color icon from Visual Editor of WordPress Post Editor from Users other than Admins?
- How do I prevent WordPress from eating my code?
- Hide default values on VC editor
- WordPress visual editor internal link default https
- Why Is Content Entered In Classic Editor Not Displaying on Page?
- WordPress visual composer backend editor not showing
- Gutenberg Block empty after reload of editor
- Add word hints in WordPress post editor
- Post/Page editor loads twice
- How to restore visual editor in WordPress
- Editors can’t edit but administrators can
- Cannot read property ‘hasClass’ of undefined(…) jquery-ui
- How to paste source code from IDE to posts directly?
- How to make elements not editable in visual editor
- RTE always on text mode by default
-   when I use ENTER for skipping line
- Why doesn’t WordPress make thumbnails for videos?
- Custom code in all text between ?
- Publishing VS2010 Web Solution to WordPress
- What does the “Show Images” do for WordPress music playlist?
- My Server Has Problem With Class-Editor.Php / $buttons
- Visual editor in comments with custom buttons
- WP 3.3 update disabled editor stylesheet? Or TinyMCE Advanced problem?
- Disable html in custom post types
- How can I fix the Insert/Edit link button in the Visual Editor in WordPress 3.9.1
- How do I use Mac Keyboard Icons in WordPress
- Cafe Food Menu upload
- WPBakery Editor dropdown hidden behind editor [closed]