Commit Graph

9 Commits

Author SHA1 Message Date
Mark Jaquith
d48d025403 "LGPL License" is redundant.
props wonderboymusic, jakub.tyrcha. fixes #15585

git-svn-id: http://core.svn.wordpress.org/trunk@23425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-15 16:26:46 +00:00
Andrew Ozz
50ceba1323 Autop: <samp> is not a block tag, props toscho, fixes #18807
git-svn-id: http://core.svn.wordpress.org/trunk@23327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-01-22 19:05:21 +00:00
Andrew Ozz
bc2a6a7f12 TinyMCE: don't remove empty <i>, <b>, <em> and <strong> matching the behavior in WordPress 3.4/TinyMCE 3.4.9, see #22477 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@23222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 22:44:10 +00:00
Andrew Ozz
25f7e53d95 TinyMCE: prevent <a> from wrapping block elements, fixes #22888 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@23219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-27 21:01:56 +00:00
Andrew Nacin
a01fc23c10 Restore the duck punch of TinyMCE's schema from [23120], along with updated rules for all HTML5 elements, as painstakingly audited against the HTML5 spec.
Remove conflicting and unnecessary code in the WP TinyMCE plugin.

Fixes all known regressions when working with the embed, object, video, audio, source, and param elements in TinyMCE.

props markjaquith, koopersmith.
fixes #22790, #22842.
fixes #22842.



git-svn-id: http://core.svn.wordpress.org/trunk@23153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 10:10:12 +00:00
Andrew Nacin
6a4e57204e Add TinyMCE's Schema.js to prepare for patching it. see #22790. see #22842. for trunk.
git-svn-id: http://core.svn.wordpress.org/trunk@23151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 10:01:24 +00:00
Andrew Nacin
eacdfa1455 Delete the patch of TinyMCE's schema; new attempt. see #22790. see #22842. for the 3.5 branch.
git-svn-id: http://core.svn.wordpress.org/trunk@23149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-10 09:56:31 +00:00
Andrew Nacin
45e3d73a05 Add a sane, inclusive HTML element/attribute schema to TinyMCE.
TinyMCE 3.4.x (shipped with WordPress 3.4.x) had an HTML4-based schema definition, with HTML5 elements added to it. TinyMCE 3.5.x (shipping, again coincidentally, with WordPress 3.5) allows for HTML5 schema support, which also provides for full HTML5 attribute support. The problem is its HTML5 schema excludes all HTML4 elements and attributes that were dropped in the HTML5 spec, which is unacceptable behavior.

This "duck punch" of TinyMCE's Schema.js file creates a new, sane schema. It is TinyMCE's HTML4 and HTML5 schema definitions recursively merged.

Objects are not whitelisted in either schema to allow for embed elements as child nodes, so object, param, and embed remain separately whitelisted in the WordPress TinyMCE plugin. Our attempts to add other attributes in said plugin is now superceded.

props koopersmith, azaozz.
fixes #22790.



git-svn-id: http://core.svn.wordpress.org/trunk@23120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 11:26:25 +00:00
Andrew Nacin
f805463013 Add TinyMCE 3.5.8's Schema.js file in preparation for monkey patching it. see #22790.
git-svn-id: http://core.svn.wordpress.org/trunk@23119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-12-07 11:12:51 +00:00