[wp-trac] [WordPress Trac] #32078: TinyMCE View HTML Content in Shortcode
WordPress Trac
noreply at wordpress.org
Fri Apr 24 16:05:34 UTC 2015
#32078: TinyMCE View HTML Content in Shortcode
--------------------------+-----------------------------
Reporter: bduclos | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: TinyMCE | Version: 4.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+-----------------------------
Comment (by bduclos):
"For now I'd recommend that you use an attribute to store the content."
how would you do it?
If I try the following code the TinyMCE View is broken, it seems there's
no way to use HTML in a shortcode.
{{{
[toggle title="Toggle Title" content="<h1>Title Lorem ipsum</h1>"]
}}}
There is also an issue if the shortcode is written on multiple lines
e.g if in text mode your shortcode is :
{{{
[audio mp3="https://wordpress.org/news/files/2014/04/AintMisbehavin.mp3"]
[/audio]
}}}
instead of
{{{
[audio
mp3="https://wordpress.org/news/files/2014/04/AintMisbehavin.mp3"][/audio]
}}}
when you switch to Visual Mode, the TinyMCE View is broken while it was
working in 4.1.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32078#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list