I have a shortcode that has a 'style' attribute for a theme that I'm creating, which looks like this:
[shortcode_name type="normal" style="fixed"]
Now if I paste this in the TinyMCE editor, I get this:
[shortcode_name type="normal"]
So it's stripping away the entire style attribute, and it does this only if I have a value for the style attribute, so it works fine if I paste this:
[shortcode_name type="normal" style=""]
I think this is related to the new feature of TinyMCE 4.0 that now supports the formatting of where the text was copied.
Any way, please let me know what's wrong here, and what should I do about it. Thanks.
Edit: Also, this is nothing to do with the shortcode. Even if I try pasting something like this:
foo style="sfdf" bar
Only this gets pasted:
foo
This is very weird. Can someone please try the above and tell me if I'm the only one with this?