Commit Graph

120 Commits

Author SHA1 Message Date
Daryl Koopersmith
67708a3d8b 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: http://core.svn.wordpress.org/trunk@22012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-26 14:12:54 +00:00
Daryl Koopersmith
9186ea913c 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: http://core.svn.wordpress.org/trunk@22004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-26 01:00:08 +00:00
Daryl Koopersmith
cd5f64584e Makes custom TinyMCE views easier to implement.
For details and examples, see the ticket.

props azaozz, fixes #21812.


git-svn-id: http://core.svn.wordpress.org/trunk@21961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-24 00:13:18 +00:00
Andrew Nacin
5f2946ba42 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: http://core.svn.wordpress.org/trunk@21934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-21 03:13:19 +00:00
Andrew Ozz
b35ac4a005 Update TinyMCE to 3.5.6, see #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-18 23:24:27 +00:00
Andrew Ozz
90679de970 Revert [21495]. Discussed in dev-chat: it's better if the themes implement this or something similar.
git-svn-id: http://core.svn.wordpress.org/trunk@21532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-15 21:21:51 +00:00
Andrew Ozz
ed1698e29b Better editor background, take one, see #21536
git-svn-id: http://core.svn.wordpress.org/trunk@21495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-10 07:11:03 +00:00
azaozz
54294ad174 Update TinyMCE to 3.5.4.1, fixes #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-07 16:22:53 +00:00
azaozz
5f196c6e2d Update TinyMCE to 3.4.9, fixes #20239, fixes #19717
git-svn-id: http://svn.automattic.com/wordpress/trunk@20177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-15 00:47:06 +00:00
azaozz
b6eb388ac4 Revert change to the default font in the visual editor, see #20184
git-svn-id: http://svn.automattic.com/wordpress/trunk@20125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-06 20:33:19 +00:00
azaozz
5745a57dc4 TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118
git-svn-id: http://svn.automattic.com/wordpress/trunk@19990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 23:46:04 +00:00
azaozz
73c87020c7 HTML in image captions, first run, see #18311
git-svn-id: http://svn.automattic.com/wordpress/trunk@19982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-24 01:58:18 +00:00
azaozz
4c10d04190 Load TinyMCE's non-minified "*src.js" plugin files when SCRIPT_DEBUG is defined, part props ericlewis, fixes #20055
git-svn-id: http://svn.automattic.com/wordpress/trunk@19945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-18 06:43:47 +00:00
azaozz
3a5832e1f2 Update TinyMCE to 3.4.8, fixes #19969, fixes #19936, fixes #19741
git-svn-id: http://svn.automattic.com/wordpress/trunk@19830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-04 22:23:27 +00:00
ryan
e3b46b25d3 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 17:01:11 +00:00
azaozz
f8d2a35aaa 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: http://svn.automattic.com/wordpress/trunk@19533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-01 21:27:19 +00:00
nacin
8fd2bc97a6 ALIGN ALL THE THINGS. fixes #19242.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-14 20:40:31 +00:00
nacin
3a3c7e2334 Remove old vendor prefixes. props andrewryno, ocean90, fixes #18700.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-07 17:32:24 +00:00
nacin
d53dd0c990 Correct TinyMCE anchor (as in <a name>) image. props jakemgold, fixes #18419.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-06 20:14:13 +00:00
azaozz
eb8878fbfc Fix wplink when TinyMCE is not loaded, fix image insertion when wpActiveEditor is not set, see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@18766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-24 04:43:19 +00:00
azaozz
2404c9cdf0 TinyMCE 3.4.5, fixes #18107
git-svn-id: http://svn.automattic.com/wordpress/trunk@18660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-09 20:08:40 +00:00
azaozz
6e3e6da9bd Fix editor icons when no SCRIPT_DEBUG, see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@18503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-08-03 23:56:21 +00:00
azaozz
f634dd5af4 Editor API enhancement, first run (still needs some work), see #17144
git-svn-id: http://svn.automattic.com/wordpress/trunk@18498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-08-03 10:19:00 +00:00
azaozz
6a36b65f01 Add the new TinyMCE icons to two more buttons, fixes #17925
git-svn-id: http://svn.automattic.com/wordpress/trunk@18373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-29 16:10:57 +00:00
koopersmith
beb5da730c Show post editor inset shadow in visual mode.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-07 20:29:54 +00:00
azaozz
b96c4d3fc6 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: http://svn.automattic.com/wordpress/trunk@18142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-05 00:06:28 +00:00
azaozz
ab509b2ea6 Fix the spellchecker button for the visual editor.
Fix focusing the editor in IE, props greuben, fixes #17467

git-svn-id: http://svn.automattic.com/wordpress/trunk@18066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-28 16:46:13 +00:00
azaozz
41a001a682 Fix regression: the visual editor removes empty paragraphs, fix CSS for the spellchecker button, fixes #17368
git-svn-id: http://svn.automattic.com/wordpress/trunk@18064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-27 19:27:19 +00:00
azaozz
14fd42c850 Add the missing icon to the TinyMCE buttons, props empireoflight, props saracannon, see #15986
git-svn-id: http://svn.automattic.com/wordpress/trunk@17972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-19 16:26:07 +00:00
azaozz
96c6667c5c Don't show the Fullscreen button on the comment edit page, see #17136
git-svn-id: http://svn.automattic.com/wordpress/trunk@17966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-19 07:34:54 +00:00
azaozz
87d32ef07a New sprite for the TinyMCE buttons, props empireoflight, props saracannon, see #15986
git-svn-id: http://svn.automattic.com/wordpress/trunk@17961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-18 21:10:12 +00:00
koopersmith
b22734bd7f Add colored hover/active state to tinymce icons. props chexee, empireoflight. fixes #15986.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-12 03:57:01 +00:00
koopersmith
fb65cc1f7f Editor toolbar/textarea styling. Props chexee. see #17324, #15986.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-11 22:28:29 +00:00
azaozz
d73acccc10 Lighter background for the TinyMCE buttons, props chexee, see #15986
git-svn-id: http://svn.automattic.com/wordpress/trunk@17843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-09 03:36:17 +00:00
azaozz
20528f3463 Add the new grey TinyMCE icons, see #15986
git-svn-id: http://svn.automattic.com/wordpress/trunk@17842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-09 03:20:50 +00:00
azaozz
b065fc6c3d Updated styles for the Visual editor buttons, props chexee, see #15986
git-svn-id: http://svn.automattic.com/wordpress/trunk@17768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-29 16:08:16 +00:00
azaozz
a69059331c Fix missing comma in TinyMCE advanced theme image.js, props johnjamesjacoby, fixes #17233
git-svn-id: http://svn.automattic.com/wordpress/trunk@17694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-24 23:27:48 +00:00
azaozz
2d51628075 Fix EOL for newly added files
git-svn-id: http://svn.automattic.com/wordpress/trunk@17628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-11 18:23:51 +00:00
azaozz
24599d17f0 Update TinyMCE to 3.4.2, includes native <iframe>, <audio>, <video> support and stops removing HTML 5.0 tags, fixes #17086
git-svn-id: http://svn.automattic.com/wordpress/trunk@17625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-10 18:36:05 +00:00
azaozz
4002b79b7a Revert the TinyMCE spellchecker to its old behaviour, update to tinymce_spellchecker_php_2_0_3, fixes #15268
git-svn-id: http://svn.automattic.com/wordpress/trunk@16405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-16 17:30:18 +00:00
azaozz
0b64e7bd0a TinyMCE 3.3 first run
git-svn-id: http://svn.automattic.com/wordpress/trunk@15683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-02 05:14:12 +00:00
azaozz
f5c253376e When inserting the embed shortcode in TinyMCE replace it with a placeholder image, update the 'wordpress', 'wpeditimage' and 'wpgallery' TinyMCE plugins, fix the audio and video "From URL" tabs in the uploader popup to accept only URLs for embedding, see #10337
git-svn-id: http://svn.automattic.com/wordpress/trunk@12098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-24 11:43:42 +00:00
azaozz
ba74883676 TinyMCE 3.2.7
git-svn-id: http://svn.automattic.com/wordpress/trunk@11974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-26 08:33:16 +00:00
azaozz
961a793bda TinyMCE 3.2.4.1, fixes #9950
git-svn-id: http://svn.automattic.com/wordpress/trunk@11473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-27 22:28:29 +00:00
azaozz
4a50994a4e TinyMCE 3.2.4, remove the autosave plugin and add the same functionality in autosave.js, fix double warning messages when leaving the page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-22 22:08:17 +00:00
azaozz
fc0c1a2e1b TinyMCE 3.2.3 final, includes new Paste plugin with auto-cleanup (better paste from MS Word)
git-svn-id: http://svn.automattic.com/wordpress/trunk@11078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-24 15:26:00 +00:00
azaozz
86645292ff TinyMCE 3.2.2.3_1087 fixes WebKit bug in Sizzle.js among others
git-svn-id: http://svn.automattic.com/wordpress/trunk@10994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-17 22:43:57 +00:00
azaozz
8011e6016b TinyMCE 3.2.2.3, has several bugfixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@10845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-27 12:57:25 +00:00
azaozz
c054f27b6e TinyMCE 3.2.2
git-svn-id: http://svn.automattic.com/wordpress/trunk@10791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-15 16:55:49 +00:00
azaozz
7cf1bbfcc7 TinyMCE: minify the custom plugins, remove unneeded CSS, load in the footer
git-svn-id: http://svn.automattic.com/wordpress/trunk@10337 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-09 12:02:59 +00:00