This is a bug between TinyMCE and WebKit based browsers. This is due to the fact that the style parameter is interpreted as a html attribute (ie img style=”float: right”). If you go to Text mode and copy and paste all will be fine. As long as you stay away of naming your shortcodes parameters as HTML attributes all should be fine.
PS: I have found this in the Paste plugin for TinyMCE 🙂 :
// Since WebKit/Chrome might clone the paste bin when pasting
// for example: <img style="float: right"> we need to check if any of them contains some useful html.
// TODO: Man o man is this ugly. WebKit is the new IE! Remove this if they ever fix it!
Related Posts:
- after_setup_theme always runs
- Any alternate TinyMCE4 themes / subthemes?
- do_shortcode() doesn’t do shortcodes ;)
- Allow Shortcode in Theme Customizer
- Can I create customizer setting that can handle plugin shortcode?
- enqueue script for specific shortcode
- Why does my short code get executed before other content?
- Run shortcode before filters
- Snippet: Use classes instead of inline styles for text alignment
- two tinyMCE editors in the same page
- What is wrong with this code I have to make a blockquote shortcode
- Add tinymce to widget textareas
- Custom shortcodes not working using __s theme
- Place the page title into the short code
- How to provide support for [gallery] shortcode?
- Responsive embed for the video shortcode
- Can’t login unless twentyfifteen theme is active
- Multiple TinyMCE Editors in one Admin Page
- Default image size not working
- How to display all subpages and short by year
- HTML added to editor when deleting shortcodes in Chrome browser
- How to i style the elements from the TinyMCE
- do_shortcode() in twentyeleven theme
- How to Manually Code Shortcode?
- Extract all shortcode data from post into loop variables?
- Insert Rich Text Editor in theme?
- Why is switching between themes breaking my child theme?
- Shortcode IF statment help
- Extending custom shortcode to also be called directly from theme PHP pages
- Shortcode call not working in WP Template
- tiny_mce_before_init: ‘exact’ => true has no effect
- Shortcodes do not work in own template
- Pagination fuction in shortcode always displays on top
- How to use shortcode inside of shortcode in theme
- Tiny MCE custom styles, and preview in the backend
- WordPress Shortcodes – Optional Styles
- Hide/disable sidebar using shortcode?
- wordpress script_loader_tag in function.php
- Theme does not allow shortcodes
- wordpress custom category post shortcode
- Avoiding do_shortcode() loops
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- how to edit woocommerce checkout page
- Passing a location-dependent array via wp_localize_script within a shortcode
- Problem using $var for shortcode attr value
- Multiple Content Shortcodes
- Onepage with shortcodes
- why my WordPress theme doesn’t support shortcode? [closed]
- Menu items description? Custom Walker for wp_nav_menu()
- Where to put my code: plugin or functions.php?
- How to define and link full path to css located at a random folder on header.php
- Sizing screenshot.png without losing aspect ratio
- Software for WordPress Theme and Plugin Development? [closed]
- When to use is_home() vs is_front_page()?
- What is the preferred way to add custom javascript files to the site?
- Get the blog page URL set in Options
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- How to add a shortcode button to the TinyMCE editor?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- Worthwhile to restrict direct access of theme files?
- How Do I Protect My Premium WordPress App Theme from Copying?
- How to detect mobile devices and present them a specific theme?
- Using wp_add_inline_style without a stylesheet
- How to add posts to custom menus?
- WordPress Theme Preview Image
- How To extend WP_Customize_Control
- What is the difference between front-page.php and home.php? [duplicate]
- How can I get page slug
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- When to use _e and __ for the translation?
- What is a Theme textdomain?
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- How important is it to enqueue a theme’s stylesheet?
- CSS not updating in browser when I change it
- Display Search Result Count
- wp_nav_menu(), how to change class?
- theme path in javascript file
- Is wp_is_mobile() effective?
- Display Menu Name using wp_nav_menu
- Making update notification functionality for my themes
- What questions do you ask when asked to give an estimate on theme development?
- How to remove dashicons.min.css from frontend?
- How do I remove a pre-existing customizer setting?
- Minimum Template Files for Theme Development
- What’s the difference between home.php and index.php?
- pass object/JSON to wp_localize_script
- get_template_part vs action hooks in themes
- Theme Activate Hook
- Solutions for generating dynamic javascript / CSS
- wp_redirect() – headers already sent
- Can I create my own “Recent Posts” widget or customize the existing one?
- Custom single template for a specific category
- how can I add an icon/image for a child theme?
- How can I add a URL field to the attachments window?
- The the_post_thumbnail without srcset?
- The proper way to include/require PHP files in WordPress