[wp-trac] [WordPress Trac] #37482: Copy/paste shortcode view containing HTML tags is broken
WordPress Trac
noreply at wordpress.org
Wed Jul 27 18:03:48 UTC 2016
#37482: Copy/paste shortcode view containing HTML tags is broken
--------------------------+------------------------------
Reporter: bduclos | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: javascript
--------------------------+------------------------------
Comment (by bduclos):
I don't have my code at the moment but I know you can reproduce this issue
with the Shortcake plugin [https://github.com/wp-shortcake/shortcake]
Their registation code for the view is https://github.com/wp-
shortcake/shortcake/blob/master/js/build/shortcode-ui.js#L274
To reproduce the issue:
- Activate the Shortcake plugin and the Shortcode UI Example plugin.
- Create a new Post. Click on the Add Media button, then on the left click
on Insert Post Element.
- Select "Shortcake Dev" and in the Quote textarea, for the purpose of
testing, type:
{{{
<h2>Heading</h2>
Some text
}}}
Copy the view and paste it. You should see:
[[Image(http://i.imgur.com/9UGm9ya.jpg)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37482#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list