Commit Graph

129 Commits

Author SHA1 Message Date
Andrew Ozz b0cd25962e Upgrade to TinyMCE 3.5.8, fixes #22755
git-svn-id: https://develop.svn.wordpress.org/trunk@23090 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 04:50:31 +00:00
Andrew Ozz 434af4ce3e TinyMCE: fix styles, add 2x background icons and load buttons.css in the Edit Image modal, remove wp-view styles from content.css, add 2x icons for the popup buttons (for editing image and gallery), fixes #22447, see #21019
git-svn-id: https://develop.svn.wordpress.org/trunk@22586 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 23:21:59 +00:00
Andrew Ozz 7d5de0703a TinuMCE: update to 3.5.7, fixes #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@22550 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-12 21:20:46 +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
Daryl Koopersmith bf02be2b60 Display gallery and attachment MCE views as inline blocks. Make gallery MCE view wrappers block level. see #21390, #21813, #21815.
git-svn-id: https://develop.svn.wordpress.org/trunk@22221 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 18:41:38 +00:00
Daryl Koopersmith 18b3efaf52 MCE Views: Add alignment styles for generic views.
Adds `alignnone`, `aligncenter`, `alignleft`, and `alignright` by default.

see #21390, #21812, #21813.


git-svn-id: https://develop.svn.wordpress.org/trunk@22219 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 18:32:12 +00:00
Daryl Koopersmith 4af634578a MCE Views: Add selection/deselection when a view is clicked.
These methods should be expanded to prevent content from being inserted into the view by blocking and rerouting keystrokes as appropriate as well as repositioning the caret before content is inserted.

see #21390, #21812, #21813, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22208 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 23:52:09 +00:00
Daryl Koopersmith 6500957bcd Improve styling and markup for gallery and attachment MCE views.
Attachment views can now inherit from the theme's `editor-style.css` — just have any rules that apply to the `img` tag apply to `.editor-attachment` as well.

Adds a non-functional edit button to gallery views.

see #21390, #21813, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22154 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 06:47:22 +00:00
Daryl Koopersmith d43c390e2b Use the new media modal to insert galleries into TinyMCE and the text editor.
'''Galleries'''

* Gallery insertion from the new media modal (into TinyMCE, the text editor, etc).
* Gallery previews in TinyMCE now use the `wp.mce.views` API.
* Disables the TinyMCE `wpgallery` plugin.
* Gallery previews consist of the first image of the gallery and the appearance of a stack. This will later be fleshed out to include more images/functionality (including editing the gallery, gallery properties, and showing the number of images in the gallery).
* Multiple galleries can be added to a single post.
* The gallery MCE view provides a bridge between the `wp.shortcode` and `Attachments` representation of a gallery, which allows the existing collection to persist when a gallery is initially created (preventing a request to the server for the query).


'''Shortcodes'''

* Renames `wp.shortcode.Match` to `wp.shortcode` to better expose the shortcode constructor.
* The `wp.shortcode` constructor now accepts an object of options instead of a `wp.shortcode.regexp()` match.
* A `wp.shortcode` instance can be created from a `wp.shortcode.regexp()` match by calling `wp.shortcode.fromMatch( match )`.
* Adds `wp.shortcode.string()`, which takes a set of shortcode parameters and converts them into a string.* Renames `wp.shortcode.prototype.text()` to `wp.shortcode.prototype.string()`.
* Adds an additional capture group to `wp.shortcode.regexp()` that records whether or not the shortcode has a closing tag. This allows us to improve the accuracy of the syntax used when transforming a shortcode object back into a string.

'''Media Models'''

* Prevents media `Query` models from observing the central `Attachments.all` object when query args without corresponding filters are set (otherwise, queries quickly amass false positives).
* Adds `post__in`, `post__not_in`, and `post_parent` as acceptable JS attachment `Query` args.
* `Attachments.more()` always returns a `$.promise` object.

see #21390, #21809, #21812, #21815, #21817.


git-svn-id: https://develop.svn.wordpress.org/trunk@22120 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-05 04:23:59 +00:00
Daryl Koopersmith 0dd940e0c1 First pass on TinyMCE attachment in-editor UI.
* Adds in-editor UI for image attachments. Most of this UI should be able to migrate to all images in a future commit.
* Removes the wpeditimage TinyMCE plugin from the default plugins array.
* Add `wp.media.fit`, a helper method to constrain dimensions based upon a maximum width and/or height.
* Add html attribute parsing and string generation utilities (currently stored in mce-views).
* Calling `remove` on a TinyMCE views now ensures that the the parent and references are removed as well.
* Fixes a bug where we weren't sending the full array of results to matches in wp.mce.view.

see #21390, #21812, #21813.



git-svn-id: https://develop.svn.wordpress.org/trunk@22012 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 14:12:54 +00:00
Daryl Koopersmith c133581a81 Add JavaScript methods for handling shortcodes.
Adds `wp.shortcode`, a set of methods used for parsing shortcodes out of content. Also adds a default set of shortcode properties to `wp.mce.view`.

fixes #21996, see #21812, #21813, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22004 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 01:00:08 +00:00
Daryl Koopersmith 0a0732f9ab Makes custom TinyMCE views easier to implement.
For details and examples, see the ticket.

props azaozz, fixes #21812.


git-svn-id: https://develop.svn.wordpress.org/trunk@21961 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 00:13:18 +00:00
Andrew Nacin cc6c48b945 Remove ui.css from WP's TinyMCE theme. It was left for back compat with a reference to editor-buttons.css, which was never updated to editor.css and no one noticed.
git-svn-id: https://develop.svn.wordpress.org/trunk@21934 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 03:13:19 +00:00
Andrew Ozz 754c42e71f Update TinyMCE to 3.5.6, see #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21545 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-18 23:24:27 +00:00
Andrew Ozz ab61b71fd5 Revert [21495]. Discussed in dev-chat: it's better if the themes implement this or something similar.
git-svn-id: https://develop.svn.wordpress.org/trunk@21532 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 21:21:51 +00:00
Andrew Ozz d79594b872 Better editor background, take one, see #21536
git-svn-id: https://develop.svn.wordpress.org/trunk@21495 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-10 07:11:03 +00:00
Andrew Ozz 35d883e244 Update TinyMCE to 3.5.4.1, fixes #21173
git-svn-id: https://develop.svn.wordpress.org/trunk@21228 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-07 16:22:53 +00:00
Andrew Ozz 4f5a600761 Update TinyMCE to 3.4.9, fixes #20239, fixes #19717
git-svn-id: https://develop.svn.wordpress.org/trunk@20177 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-15 00:47:06 +00:00
Andrew Ozz ef4f301599 Revert change to the default font in the visual editor, see #20184
git-svn-id: https://develop.svn.wordpress.org/trunk@20125 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-06 20:33:19 +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
Andrew Ozz 0fa723245a HTML in image captions, first run, see #18311
git-svn-id: https://develop.svn.wordpress.org/trunk@19982 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-24 01:58:18 +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 4f500fdb56 Update TinyMCE to 3.4.8, fixes #19969, fixes #19936, fixes #19741
git-svn-id: https://develop.svn.wordpress.org/trunk@19830 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-04 22:23:27 +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 cd59832859 Make sure editor-buttons.css is loaded even if tiny_mce.js is used directly and the wp_theme skin is selected in the settings, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@19533 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-01 21:27:19 +00:00
Andrew Nacin b52ab851ec ALIGN ALL THE THINGS. fixes #19242.
git-svn-id: https://develop.svn.wordpress.org/trunk@19278 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-14 20:40:31 +00:00
Andrew Nacin 808c8dc6a5 Remove old vendor prefixes. props andrewryno, ocean90, fixes #18700.
git-svn-id: https://develop.svn.wordpress.org/trunk@19203 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-07 17:32:24 +00:00
Andrew Nacin 15622fb001 Correct TinyMCE anchor (as in <a name>) image. props jakemgold, fixes #18419.
git-svn-id: https://develop.svn.wordpress.org/trunk@19190 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-06 20:14:13 +00:00
Andrew Ozz be87523fed Fix wplink when TinyMCE is not loaded, fix image insertion when wpActiveEditor is not set, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18766 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-24 04:43:19 +00:00
Andrew Ozz 5c2de1a6fc TinyMCE 3.4.5, fixes #18107
git-svn-id: https://develop.svn.wordpress.org/trunk@18660 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-09 20:08:40 +00:00
Andrew Ozz 5b4ac17cc5 Fix editor icons when no SCRIPT_DEBUG, see #17144
git-svn-id: https://develop.svn.wordpress.org/trunk@18503 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 23:56:21 +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
Andrew Ozz 131af255ff Add the new TinyMCE icons to two more buttons, fixes #17925
git-svn-id: https://develop.svn.wordpress.org/trunk@18373 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-29 16:10:57 +00:00
Daryl Koopersmith d528a78cbe Show post editor inset shadow in visual mode.
git-svn-id: https://develop.svn.wordpress.org/trunk@18180 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-07 20:29:54 +00:00
Andrew Ozz 98d58b4edd Fix WebKit browsers reporting document.body height shorter than it is, add classes to TinyMCE's body: 'wp-editor' or 'wp-fullscreen-editor', fix mousemove event in IE, fixes #17664
git-svn-id: https://develop.svn.wordpress.org/trunk@18142 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-05 00:06:28 +00:00
Andrew Ozz 69d133d6f0 Fix the spellchecker button for the visual editor.
Fix focusing the editor in IE, props greuben, fixes #17467

git-svn-id: https://develop.svn.wordpress.org/trunk@18066 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-28 16:46:13 +00:00
Andrew Ozz 3db61a5880 Fix regression: the visual editor removes empty paragraphs, fix CSS for the spellchecker button, fixes #17368
git-svn-id: https://develop.svn.wordpress.org/trunk@18064 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-27 19:27:19 +00:00
Andrew Ozz 15a8ad08c9 Add the missing icon to the TinyMCE buttons, props empireoflight, props saracannon, see #15986
git-svn-id: https://develop.svn.wordpress.org/trunk@17972 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-19 16:26:07 +00:00
Andrew Ozz 0d5e03dd9f Don't show the Fullscreen button on the comment edit page, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17966 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-19 07:34:54 +00:00
Andrew Ozz d5c0b43145 New sprite for the TinyMCE buttons, props empireoflight, props saracannon, see #15986
git-svn-id: https://develop.svn.wordpress.org/trunk@17961 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-18 21:10:12 +00:00
Daryl Koopersmith ea8882117f Add colored hover/active state to tinymce icons. props chexee, empireoflight. fixes #15986.
git-svn-id: https://develop.svn.wordpress.org/trunk@17890 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-12 03:57:01 +00:00
Daryl Koopersmith b6debf6cfb Editor toolbar/textarea styling. Props chexee. see #17324, #15986.
git-svn-id: https://develop.svn.wordpress.org/trunk@17868 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-11 22:28:29 +00:00
Andrew Ozz c9761627f9 Lighter background for the TinyMCE buttons, props chexee, see #15986
git-svn-id: https://develop.svn.wordpress.org/trunk@17843 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-09 03:36:17 +00:00
Andrew Ozz 98d4435ba5 Add the new grey TinyMCE icons, see #15986
git-svn-id: https://develop.svn.wordpress.org/trunk@17842 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-09 03:20:50 +00:00
Andrew Ozz ef5ae46a9d Updated styles for the Visual editor buttons, props chexee, see #15986
git-svn-id: https://develop.svn.wordpress.org/trunk@17768 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 16:08:16 +00:00
Andrew Ozz d1e074d29c Fix missing comma in TinyMCE advanced theme image.js, props johnjamesjacoby, fixes #17233
git-svn-id: https://develop.svn.wordpress.org/trunk@17694 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-24 23:27:48 +00:00
Andrew Ozz 26c5007b52 Fix EOL for newly added files
git-svn-id: https://develop.svn.wordpress.org/trunk@17628 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-11 18:23:51 +00:00
Andrew Ozz 4c572d1f03 Update TinyMCE to 3.4.2, includes native <iframe>, <audio>, <video> support and stops removing HTML 5.0 tags, fixes #17086
git-svn-id: https://develop.svn.wordpress.org/trunk@17625 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-10 18:36:05 +00:00
Andrew Ozz 9691518b51 Revert the TinyMCE spellchecker to its old behaviour, update to tinymce_spellchecker_php_2_0_3, fixes #15268
git-svn-id: https://develop.svn.wordpress.org/trunk@16405 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-16 17:30:18 +00:00
Andrew Ozz 358c7e1885 TinyMCE 3.3 first run
git-svn-id: https://develop.svn.wordpress.org/trunk@15683 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-02 05:14:12 +00:00