Commit Graph

120 Commits

Author SHA1 Message Date
bumpbot b0d4114414 Compress scripts/styles: 3.6-beta2-24216.
git-svn-id: https://develop.svn.wordpress.org/trunk@24216 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-09 00:58:57 +00:00
Andrew Ozz 05f48e1725 TinyMCE: fix for the disappearing placeholders bug in Chrome, see #24177
git-svn-id: https://develop.svn.wordpress.org/trunk@24215 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-09 00:24:45 +00:00
Andrew Ozz f4b1c3c53f TinyMCE: attempt a workaround for WebKit bug inserting spans with font styles when creating UL or OL. See #17154
git-svn-id: https://develop.svn.wordpress.org/trunk@24211 602fd350-edb4-49c9-b593-d223f7449a82
2013-05-08 23:03:44 +00:00
bumpbot e3023dcdbb Compress scripts/styles: 3.6-alpha-23746. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23746 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:58:39 +00:00
Andrew Ozz cc7ca57f85 Editor: preserve the textarea content when saving, wpautop is not used and TinyMCE is hidden. Props WraithKenny, fixes #23743
git-svn-id: https://develop.svn.wordpress.org/trunk@23745 602fd350-edb4-49c9-b593-d223f7449a82
2013-03-18 20:40:39 +00:00
bumpbot 2359d3397c Compress scripts/styles: 3.5-RC5-23155. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23155 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:15:13 +00:00
Andrew Nacin 4c3c22af1e 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: https://develop.svn.wordpress.org/trunk@23153 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 10:10:12 +00:00
bumpbot 63dbb2f4e4 Compress scripts/styles: 3.5-RC5-23145. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23145 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:41:15 +00:00
Andrew Nacin 9857a5d028 TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element.
Fixes a bug in TinyMCE when using its HTML5 schema definition.

props azaozz.
see #22790.
for trunk.
... with the right patch this time. [23142] was done in error.



git-svn-id: https://develop.svn.wordpress.org/trunk@23144 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:40:16 +00:00
bumpbot bf247694cb Compress scripts/styles: 3.5-RC5-23143. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23143 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:38:50 +00:00
Andrew Nacin b8a5aca5eb TinyMCE: Use the correct syntax for allowing an `embed` element to be a valid child of an `object` element.
Fixes a bug in TinyMCE when using its HTML5 schema definition.

props azaozz.
see #22790.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23142 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-10 02:37:50 +00:00
bumpbot be03cb514b Compress scripts/styles: 3.5-RC4-23121. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23121 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:41:16 +00:00
Andrew Nacin 66f1a19089 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: https://develop.svn.wordpress.org/trunk@23120 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 11:26:25 +00:00
bumpbot 412a605ecf Compress scripts/styles: 3.5-RC4-23113. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23113 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 00:07:33 +00:00
Ryan Boren ce2720984b Extend allowed elements for object and embed.
Props azaozz
fixes #22790


git-svn-id: https://develop.svn.wordpress.org/trunk@23112 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-07 00:05:54 +00:00
bumpbot 2e35cea2fa Compress scripts/styles: 3.5-RC3-23047. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23047 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:44:27 +00:00
Ryan Boren 52b234de11 When deleting an image in the editor with the delete or backspace keys, hide the edit and delete popup buttons.
Props azaozz, lessbloat
fixes #22717


git-svn-id: https://develop.svn.wordpress.org/trunk@23046 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 22:42:26 +00:00
bumpbot a5d63fdb91 Compress scripts/styles: 3.5-RC1-22885. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22885 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-28 00:58:44 +00:00
Andrew Nacin 92e85f9957 Editor: When hiding gallery/image editing buttons, use Sizzle rather than TinyMCE's internal DOM object. Avoids errors in case the elements do not exist, such as in Press This. props azaozz. fixes #22463.
git-svn-id: https://develop.svn.wordpress.org/trunk@22883 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 23:36:07 +00:00
bumpbot 8d72af5bfc Compress scripts/styles: 3.5-RC1-22879. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22879 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 20:58:37 +00:00
Andrew Nacin 7f34c3e8ec Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541.
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
bumpbot 91f6658471 Compress scripts/styles: 3.5-RC1-22860. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22860 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 02:58:50 +00:00
Andrew Ozz afb0b8627b TinyMCE: improve hiding of the image/gallery popup buttons, fix selecting a gallery in IE, don't leave empty paragraph after deleting an image with the popup button, fixes #22463, see #21390
git-svn-id: https://develop.svn.wordpress.org/trunk@22857 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 01:31:51 +00:00
bumpbot eda9828244 Compress scripts/styles: 3.5-beta3-22657. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22657 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:58:28 +00:00
Daryl Koopersmith f2d2f6bb45 Media: Make TinyMCE attachment and gallery controls always show when the corresponding view is selected. props SergeyBiryukov. fixes #22463, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22652 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:23:45 +00:00
bumpbot 16efc358df Compress scripts/styles: 3.5-beta3-22601. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22601 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 22:58:31 +00:00
Andrew Ozz 3fb4a69c08 TinyMCE: extend the allowed obsolete attributes to include tr, th and td (thead, tfoot and tbody weren't around in HTML 3.2), see #22175
git-svn-id: https://develop.svn.wordpress.org/trunk@22600 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 22:56:44 +00:00
bumpbot 7ec25963e0 Compress scripts/styles: 3.5-beta2-22438. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22438 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:29:58 +00:00
Mark Jaquith 504b94b1b3 Use ImageOptim to losslessly smush our images. About half a MB in savings! fixes #22381. props waldojaquith
git-svn-id: https://develop.svn.wordpress.org/trunk@22425 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 18:49:10 +00:00
Andrew Ozz 49d5e725ce Allow commonly used obsolete HTML5 attributes in TinyMCE, table[summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor] and a[name], fixes #22175
git-svn-id: https://develop.svn.wordpress.org/trunk@22411 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 23:36:10 +00:00
bumpbot 4e1bc64c80 Compress scripts/styles: 3.5-alpha-21416. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21416 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 18:58:19 +00:00
Andrew Ozz ffab659fea TinyMCE: revert Firefox shortcuts to match all other browsers (Alt+Shift+letter), fix the labels for the shortcuts, update description in wp-mce-help, fixes #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21415 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-03 18:12:45 +00:00
bumpbot 37431ce817 Compress scripts/styles: 3.5-alpha-21360. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21360 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-29 22:58:19 +00:00
Andrew Ozz 23e2a1813c TinyMCE shortcuts: revert to Alt + Shift + letter for WebKit and Ctrl + Alt + letter (Command + Option + letter) in Firefox, see #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21359 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-29 21:08:58 +00:00
bumpbot 1879bb5571 Compress scripts/styles: 3.5-alpha-21273. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21273 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-14 02:58:20 +00:00
Andrew Ozz b3fdac2a17 TinyMCE: add the Alt + W shortcut only when DFW is loaded and Alt + G only when MCE fullscreen is loaded, fixes #21197
git-svn-id: https://develop.svn.wordpress.org/trunk@21272 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-14 01:46:54 +00:00
bumpbot 47002c1652 Compress scripts/styles: 3.5-alpha-21269. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21269 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 00:58:19 +00:00
Andrew Ozz 9423d09005 TinyMCE: update the keyboard shortcuts: Alt + letter for Firefox and WebKit, Alt + Shift + letter for IE and Opera, add shortcut for DFW (Alt + W), see #21214, fixes #21197, fixes #17992
git-svn-id: https://develop.svn.wordpress.org/trunk@21266 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-13 00:26:49 +00:00
bumpbot bc81976ef2 Compress scripts/styles: 3.4-alpha-20056.
git-svn-id: https://develop.svn.wordpress.org/trunk@20056 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:15:21 +00:00
Andrew Ozz 6afe9edf69 Improve adding more css classes to the editor body, add "rtl", "ie7", "ie8", "ie9" so they can be targeted in editor-style.css, see #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@20054 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-29 23:06:24 +00:00
bumpbot 31e28f6f2e Compress scripts/styles: 3.4-alpha-19991.
git-svn-id: https://develop.svn.wordpress.org/trunk@19991 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-25 00:01:02 +00:00
Andrew Ozz ffdbe9be58 TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: https://develop.svn.wordpress.org/trunk@19990 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 23:46:04 +00:00
bumpbot 076239d0ed Compress scripts/styles: 3.4-alpha-19989.
git-svn-id: https://develop.svn.wordpress.org/trunk@19989 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:30:59 +00:00
Andrew Ozz d1eb773689 Close TinyMCE popups/dialogs when clicking on the background, fixes #20117
git-svn-id: https://develop.svn.wordpress.org/trunk@19988 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 22:29:46 +00:00
Andrew Ozz 402c8c302d Load TinyMCE's non-minified "*src.js" plugin files when SCRIPT_DEBUG is defined, part props ericlewis, fixes #20055
git-svn-id: https://develop.svn.wordpress.org/trunk@19945 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-18 06:43:47 +00:00
Andrew Ozz 5c1c053485 Add the editor ID and the post type (when available) as classes to the TinyMCE's body, fixes #19437
git-svn-id: https://develop.svn.wordpress.org/trunk@19912 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-13 07:22:45 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Andrew Ozz 8319988a27 TinyMCE: add class to the editor body for the old fullscreen mode (still can be used by plugins), see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@19457 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-28 00:21:36 +00:00
Andrew Ozz 945d4500b4 Add TinyMCE command to handle opening of the upload/insert popup, fix the shortcut "Alt+Shift+M", fix the "image" button in DFW, fixes #17992, fixes #18697, see $17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18710 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 00:47:23 +00:00
Andrew Ozz 461ceba60d Editor API enhancement, first run (still needs some work), see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18498 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 10:19:00 +00:00