Commit graph

152 commits

Author SHA1 Message Date
James D. Forrester 9b275ae066 Update VE core submodule to master (7af9774)
New changes:
b3e4c35 Localisation updates from https://translatewiki.net.
e0708f2 Show from/to of range in debug bar
a132724 Localisation updates from https://translatewiki.net.
d80b127 Localisation updates from https://translatewiki.net.
c81a3f3 Localisation updates from https://translatewiki.net.
7f90e0b Apply 'original size' to images

Change-Id: I14b7fc9c1b61b8a30e57eb366b06d1032b12d00a
2014-07-08 10:59:08 -07:00
Roan Kattouw b86d481871 Update VE core submodule to master (a887989)
Also implement isInternetExplorer() in mw.Platform using jquery.client.

New changes:
9b2102f Skip over nested handlesOwnChildren nodes in getRelativeOffset
30a9835 Localisation updates from https://translatewiki.net.
5d142a0 Restrict get relative offset to movements of +/-1
7a2c984 Check that the surface has a selection after focus
851a63d Remove jquery.client
8786e53 Add evil detection functionality for IE
96f19ad Disable triple-click handling in IE
d746d42 Revert "Restrict get relative offset to movements of +/-1"
859d578 Revert "Skip over nested handlesOwnChildren nodes in getRelativeOffset"

Change-Id: Ib2e6568a862336e2516e4c519468218ec2a84834
2014-07-03 17:59:37 -07:00
James D. Forrester c06dc68184 Update VE core submodule to master (a2709b5)
New changes:
0516906 ve.ce.Surface: Prevent incorrect pawning in Opera 12
8e68032 build: Merge intro.css and intro.js.txt to intro.txt as they're identical
6166717 Update OOjs UI to v0.1.0-pre (85cfc2e735)

Change-Id: Ia91d7b2fe09f2b23ad55de3bbb3d74a8644ffc94
2014-07-03 10:42:52 -07:00
Roan Kattouw 0561ca376c Update VE core submodule to master (384618f)
New changes:
a6393a9 Localisation updates from https://translatewiki.net.
e9fbb24 Followup 96ff968: use this.$element after it's initialized, not before
22ee9d4 Follow-up: If717ef98 – Re-add subscript and superscript removes to DM nodes

Change-Id: If01a4ded55bc1a14f632bfc27dbf7a92029f1b41
2014-07-02 17:36:03 -07:00
James D. Forrester ec30c025d1 Update VE core submodule to master (2a2ebe9)
New changes:
ca2d078 Grunt: Create a distribution files for the ve module
ff4bf36 Run node-svgo to crush all SVGs whilst retaining readibility
076edd4 Provide the (currently-unused) external link icon in LTR and RTL variants
96ff968 Use globalOverlay as the contextOverlay in MobileContext
374fd68 In the toolbar, display superscript tool above subscript tool
e800343 Update OOjs UI to v0.1.0-pre (432a76f7d4)
2d4b557 Use CSSJanus to generate RTL stylesheets

Change-Id: If07518c1a7b72fb0fadd7ee840809006ad87a3c0
2014-07-02 10:41:43 -07:00
Roan Kattouw 3b694967c8 Update VE core submodule to master (9ed40c3)
New changes:
0fc6027 Hide context tools when the model they match isn't "inspectable"
9ed40c3 Reenable mobile context and style it properly

Change-Id: Ifab2e6b937aedaae13fc883063eff36a99c56883
2014-07-01 14:55:02 -07:00
Roan Kattouw 84b63310f4 Update VE core submodule to master (125632e)
New changes:
579a214 Re-label "Clear formatting" to "Clear styling"
494c1cb Prevent iOS Safari from following links
8ba3771 Never embed the context when an inspector is present
5553f56 Localisation updates from https://translatewiki.net.

Change-Id: I748336dc90285c376a8b8ad1ee6c48c94c4cb128
2014-07-01 14:06:23 -07:00
jenkins-bot caa2298198 Merge "Compress HTML data with deflate before POSTing" 2014-06-30 23:43:16 +00:00
Ed Sanders 41672be584 Update VE core submodule to master (dc01df0)
New changes:
d02cf3d Fix simulation of .prepend() in ve.ce.BranchNode#onSplice
c19fa38 [BREAKING CHANGE] Remove generated content node wrappers

Local changes to remove classes attached to GC nodes

Change-Id: Ide82c96db4803ef59d398788b46fa5d7fb9a2476
2014-06-30 16:34:56 -07:00
James D. Forrester ceb8834ffc Update VE core submodule to master (480b813)
New changes:
8a64317 Set XML encoding to utf-8 in SVGs
6bdacc7 Select highlights on touchend event
19409c6 Localisation updates from https://translatewiki.net.
2dca505 Split out ve.{dm,ce}.TextStyleAnnotation into parts, add other annotations

Change-Id: I42f82440919973dd040e3cb18ae0acba7d4a0c8d
2014-06-30 12:15:52 -07:00
Ed Sanders f81c4a6f8c Update VE core submodule to master (7a128e5)
Fix failing test in handleDelete. New functionality
moves cursor to content offset.

New changes:
fb595ea Also annotate metadata in TransactionProcessor
028e442 maintenance: Simpler OOjs UI pullthrough-script
fdd5e17 Follow-up I81663929: Use grunt git-build to ensure we get the hash
58db9a8 Update OOjs UI to v0.1.0-pre (a63f03882e)
c790488 Use more standard format for displaying keyboard shortcuts
c15a6f1 Add a ve direction class to all surfaces
5c3a914 Remove old ce-surface classes
2f565b6 Fix up selection after deletion if at non-content offset
7b39328 Correct various things in rangy-position to make it work in IE

Change-Id: Ia46f4c7ded52911574b6c1104682335aaaac08d5
2014-06-30 11:21:20 -07:00
James D. Forrester 4be59a00c1 Update VE core submodule to master (a014302)
New changes:
5f2dd5c Update OOjs to v1.0.10
49fae55 Always refocus the paste target when a node is selected

Change-Id: I7647ee189ce5df1e748f660bb2f43c160d7729f9
2014-06-27 14:28:44 -07:00
James D. Forrester a70a4828c5 Update VE core submodule to master (aaa8547)
New changes:
04d9484 Update OOjs UI to v0.1.0-pre (9aad824bd6)
981d86f Correctly update full size in MediaSizeWidget
e935a9f Demo page styling
e7b0557 FocusableNode: Use getClientRects()[0] instead of getBoundingClientRect()
7e7d5c1 Only allow slugs where paragraphs are allowed
8653a84 Localisation updates from https://translatewiki.net.
aaa8547 Update OOjs UI to v0.1.0-pre (b9d403a678)

Change-Id: Iaff1cda5605a397b78590c4f9b66d1e4d4d2d564
2014-06-26 18:30:08 -07:00
Ed Sanders 61ac4c0c6f Update VE core submodule to master (000935e)
New changes:
5321ee2 Work around IE DOMParser bug in ve.createDocumentFromHtml
3d6f0e2 Use subtle border styling for unstyled tables
b1baa3d Localisation updates from https://translatewiki.net.

Change-Id: Ic962fbc1dcbca1a83b4c16756278981c45c5e865
2014-06-25 17:38:11 -07:00
James D. Forrester f8a2fc5a1c Update VE core submodule to master (1aa3143)
New changes:
b90f7f8 Localisation updates from https://translatewiki.net.
16d222c Remove .inIme state from CE Surface
abc730a build: Update jscs and use new "wikimedia" preset
457b8d9 build: Re-enable validateIndentation
6bce1d1 Localisation updates from https://translatewiki.net.
1aa3143 Cache block drop position data before setTimeout

Change-Id: I9330a67b5121f3c1c55ac4fbaf2b245d945f821f
2014-06-25 11:56:48 -07:00
Ed Sanders 288da5b704 Compress HTML data with deflate before POSTing
Bug: 66914
Change-Id: I7b0a9cfd4d4c10986769a868884688ffca833cb6
2014-06-24 17:39:03 +01:00
James D. Forrester 44d025a198 Update VE core submodule to master (1f16037)
New changes:
1f16037 Update OOjs UI to v0.1.0-pre (7a0e222a75)

Change-Id: Iaad40a5e0fb764450fccff9e94d7e83f07eced09
2014-06-18 16:26:09 -07:00
Ed Sanders d505cc3763 Update VE core submodule to master (8809237)
Fix tests to include new insertion operation properties.

New changes:
afbd97e Localisation updates from https://translatewiki.net.
d90c212 [BREAKING CHANGE (ish)] Track original data position in insertion operations

Change-Id: Iac86f212bdb78f47f49c6984affe88feaf786765
2014-06-18 15:42:13 -07:00
James D. Forrester d15be3eb8e Update VE core submodule to master (33b43ec)
New changes:
8b51398 Catch rangy exception thrown in FF
69b2b72 Remove old, unused version of rangy
355be3e Prevent getOffset from return an offset inside a content node

Change-Id: Ib669b4fa03d253f8fcb42917d0c2a7e634d43a9f
2014-06-18 11:12:32 -07:00
Roan Kattouw d9ae4447cf Update VE core submodule to master (52dc4e8)
New changes:
8420735 Test cases for annotating handles own children nodes
a3395ae Improve equalRange assertion and use in more places
52ee587 Block item drag and drop
dfe6d9f Drag and drop of arbitrary selections
11ffd9a Defer focusableNode selection fix until after native selection change

Change-Id: Iffebd8c7e8fbb7c17e25984d69e692b0c0980950
2014-06-17 18:47:44 -07:00
Ed Sanders b7343b5e07 Update VE core submodule to master (4c599b0)
Fix ContentBranchNode tests for getClientRects change.

New changes:
9bbd259 Create highlight elements on demand
a711c6d Indent demo HTML
b1b6562 Use cached surfaceView
d4b48b1 Replace <cite> with <span rel="ve:Alien">
ee5b697 Shields are dead, long live getClientRects
4c599b0 Remove repositionOnly argument from update

Change-Id: Ifa65c46d09864f214ece9349b990f7d8c07d416b
2014-06-17 16:18:29 -07:00
Ed Sanders 00af43495b Update VE core submodule to master (155f4ab)
Use new setupToolbar and setupDebugbar methods in base target.

New changes:
7ff523d Localisation updates from https://translatewiki.net.
3815224 [BREAKING CHANGE] Debug bar refactor
155f4ab Edit HTML mode in demo

Change-Id: I554ce51eae872ab0f741a913bf10394c2a8c3e52
2014-06-16 14:52:48 -07:00
Ed Sanders 0688aa7b02 Update VE core submodule to master (89820e5)
Remove clickable node mixins.

New changes:
65e2e22 [BREAKING CHANGE] Make all focusable nodes clickable

Change-Id: I24403e12621e5b789e0b8c99f54f1d1b8fa802cc
2014-06-16 12:59:37 -07:00
Roan Kattouw ac8bf28677 Update VE core submodule to b16dbb52
New changes:
c5d2909 Fix alien demo
c5fe8d7 Alien node styling
25c791a Localisation updates from https://translatewiki.net.
ff326d4 Localisation updates from https://translatewiki.net.
230800c Localisation updates from https://translatewiki.net.
91ec366 Remove margins from paragraphs inside table cells
fe72fdc Localisation updates from https://translatewiki.net.
97edf35 Fix shield CSS broken by Parsoid styles
21cddae Trigger endRelocation on focusable drag end
05d7d00 Revert "Fix shield CSS broken by Parsoid styles"

Change-Id: Ie33e187dfdacebb0dc399fbd1d78953cde72cc90
2014-06-16 12:46:17 -07:00
Ed Sanders 0791d86b77 Update VE core submodule to master (4d919d2)
Implement new language platform functions.

Also remove unused MWLanguageSearchDialog and MWLanguageSearchWidget.

New changes:
4d919d2 [BREAKING CHANGE] Move language functions to the platform

Change-Id: I54c0a8e5816a3c81851f95f1d3062a6091a9f4a3
2014-06-12 19:42:35 +00:00
Roan Kattouw ad2793f6e6 Update VE core submodule to master (356f325)
New changes:
d36f233 Don't refocus the document in onModelSelect
d22d183 Rebuild .html files for ContextWidget addition
1035ecc Update OOjs UI to v0.1.0-pre (c5ae888f67)
356f325 Improved layout of language input widget

Change-Id: I9620d8dc985ec4aceedf70ee342e0537c44dfceb
2014-06-12 12:35:34 -07:00
Trevor Parscal 06f00d73ae [BREAKING CHANGE] Update VE core submodule to master (43a48cb) for window process cleanup
* Update size of save dialog earlier on, and swap back to save panel in
  save dialog on setup instead of ready to avoid scaling and sizing
  simultaneously
* Update use of closing/closed/opening/open events to use
  setup/ready/teardown events instead

New changes:
43a48cb [BREAKING CHANGE] Update OOjs UI to v0.1.0-pre (9f4f250f88) for window process cleanup

Bug: 65705
Bug: 65343
Bug: 60843
Change-Id: Idf6f85ae12f6ca80fde57a400cb5b11270938c1a
2014-06-12 00:42:13 +00:00
Roan Kattouw 7575ee6db3 Update VE core submodule to cf1945f60e3d1d7bc54c9ef5f90ac3ebd1f3d42b
New changes:
6fecd98 Better measurement of focusable node for context menu
9166bcd Special case for shielding of generated content wrappers
77903da Centre callout on context menu for small focusable nodes
1f8ac6d Make highlighting of context widget items less loud
48c57d3 Localisation updates from https://translatewiki.net.
a00d8ac Check language's direction rather than global direction in LanguageAnnotation description
7923e6d toLowerCase language code when searching for autonym
8eb4a71 Re-enable apply button in action dialog on close

Change-Id: I56bd961110d9fa505db1d7472caa1fd93519d284
2014-06-11 17:32:52 -07:00
Roan Kattouw 10cda9359a Update VE core submodule to master (fc52878)
Remove RelocatableNode mixins for new FocusableNode.

New changes:
fc52878 [BREAKING CHANGE] Merge RelocatableNode into FocusableNode

Change-Id: Id8ce497b0fd1ff7732f68aa1ae8af4f4f8f9db0f
2014-06-11 11:14:46 -07:00
Roan Kattouw 310601ef47 Update VE core submodule to master (e1b0e33)
Remove ProtectedNode mixins for new FocusableNode.

New changes:
e1b0e33 [BREAKING CHANGE] Merge ProtectedNode into FocusableNode

Change-Id: Ie515704163c24317739fd34d35094b9ada6bfa66
2014-06-10 16:52:49 -07:00
Roan Kattouw 1455c72a35 Update VE core submodule to master (ba8872e)
Replace instances of target.$document, which was removed
in VE core.

New changes:
8083623 [BREAKING CHANGE] Remove $document cache from target
9256158 Cleanup target properties
cc0d71f Multi-surface fixes
ba8872e Localisation updates from https://translatewiki.net.

Change-Id: Ibff83cae770c056ed64bcf438ed74b44d929cdc0
2014-06-10 13:52:34 -07:00
Trevor Parscal 26186c3c6f Update VE core submodule to master (8f8d29a)
New changes:
84a2e6f Reorganize initialization of default size in MediaSizeWidget
e8d0e8c Update OOjs UI to v0.1.0-pre (99068355d6)
f0e9ad9 Allow for the disabling of the MediaSizeWidget
25c4fce Tighten up context menu items

Change-Id: Id6c97cc3713d22490c7afd806eb9eee282fefd85
2014-06-10 11:25:57 -07:00
James D. Forrester 4be0218bbb Update VE core submodule to master (5f10e73)
New changes:
a53f101 Update OOjs UI to v0.1.0
1fa518b Update OOjs UI to v0.1.0-pre (15f4156bac)
257af53 Use ContextWidget instead of toolbar inside context menu
5f10e73 Follow-up Ia2076a42: Mark getDescription() as @inheritable for Annotation, Node

Local changes to adjust for the ContextWidget changes.

Change-Id: I47f68f5cf1b9583dab9bd0109fa6504481bdfc67
2014-06-09 18:35:08 -07:00
Ed Sanders 0953c5bd01 Update VE core submodule to master (3a80662)
New changes:
ffb8ef1 Use this.$ where available
b096a83 *Actual* death and/or *actual* destruction
8b122b3 Destroy old target before initialising new one in demo
49b4d9f Localisation updates from https://translatewiki.net.
ef6ff7d Localisation updates from https://translatewiki.net.
e220b3e Re-order special character mathematical symbols to be degrees, minutes, seconds
3a80662 Localisation updates from https://translatewiki.net.

Change-Id: Id4b5dcb000ad4e7fad55c0838701c312293b8fc8
2014-06-09 21:42:55 +01:00
James D. Forrester 2c00c39393 Update VE core submodule to master (2587549)
Update DM node constructors for I81c60d4a in VE core.

New changes:
2587549 [BREAKING CHANGE] Fix Node construction arguments

Change-Id: I8d4f37b631fe85a78c72407937477963ac49f87a
2014-06-06 20:28:03 -07:00
James D. Forrester 91b24c41ee Update VE core submodule to master (626f5ab)
New changes:
25257c1 Only show debug bar when ve.debug is set
7ec295b Use this.$() in LanguageResultWidget#highlightQuery
bc2bffc Handle collapsed range properly in pushRemoval
e4551c3 Update OOjs UI to v0.1.0-pre (c9b9f8345d)
bdf3b57 Inflict a gruesome death on ve.ce.getOffset() and reincarnate it
778ab84 Calculate offset correctly in inline slugs
38059f8 Localisation updates from https://translatewiki.net.
46bf0df Cleanup special character inspector CSS

Change-Id: If8f1913891d5a4d386dc13bb6d14d2c43be1eeaa
2014-06-06 19:17:24 -07:00
James D. Forrester 6e7bd901e7 Update VE core submodule to master (7a4d039)
New changes:
e33aeaf Update OOjs UI to v0.1.0-pre (6379e76bf5)
c0bfdb0 Apply 'default' or 'custom' size on load
62da3a2 Localisation updates from https://translatewiki.net.
001956f Grunt: Clean up
644d010 Move comment down so DOCTYPE is on first line
55b1ff9 Skip history#replaceState if not available
2f39260 Localisation updates from https://translatewiki.net.
34e22ae Fix potential race condition with nulling out Dialog/Inspector fragment
7a4d039 Update OOjs UI to v0.1.0-pre (cbc62ac803)

Change-Id: I9d04bfcb30ced7c98c0f72350f1f25732a76205b
2014-06-04 17:18:28 -07:00
Roan Kattouw 14c8dc8295 Update VE core submodule to master (26a1027)
New changes:
ed97f51 Localisation updates from https://translatewiki.net.
9382cb7 Localisation updates from https://translatewiki.net.
f3c057b Update OOjs UI to v0.1.0-pre (527ad0ee5a)
db83b1d Localisation updates from https://translatewiki.net.
cf8463e Add a function to ElementLinearData to count all elements that aren't in internalList

Change-Id: I1e07568b1c094d96d4ec8ab1af50b242f77346d6
2014-06-02 17:11:47 -07:00
Trevor Parscal f65c3c6ef1 [BREAKING CHANGE] Update VE core submodule to master (88fe25f)
Switch to processes for windows (dialogs/inspectors)

This conversion also required the splitting of MWLinkInspector into
MWLinkNodeInspector and MWLinkAnnotationInspector.

New changes:
88fe25f [BREAKING CHANGE] Update OOjs UI to v0.1.0-pre (dd888aba5c)

Change-Id: I662d8985463c9fc881775f70aef87ebeb454a73f
2014-05-30 22:03:45 -07:00
Roan Kattouw d7ca1604d6 Clean up interaction with confirmation dialog
It now only sends a single 'done' event, which we can use .once on

Relies on I4f485d4f in OOjs UI.

New changes:
418cd67 Update OOjs UI to v0.1.0-pre (0f101c6f5d)

Bug: 65571
Change-Id: I19aa65612bf02bed056de292f212d2f5732a8fec
2014-05-30 16:39:07 -07:00
Roan Kattouw 350c99e249 Update VE core submodule to master (0f178b5)
New changes:
636d84e Optionally allow undo while staging
8d75e08 Don't fix selection on document focus if focusedNode is set
42c35dd Fallback options for receiving bad information into Scalable object
3a07dd0 Remove last jQuery.browser uses with temporary ve.isMsie hack
f265c86 Localisation updates from https://translatewiki.net.
6a8c609 Localisation updates from https://translatewiki.net.
0343976 Update OOjs UI to v0.1.0-pre (469d40c88f)
0b684c5 ActionDialog: Allow errors to be jQuery objects

Change-Id: I5ac0b828ed4b7c492cd770b1e980d02e60128740
2014-05-30 16:08:03 -07:00
James D. Forrester d2896e111d Update VE core submodule to master (610021b)
New changes:
610021b Update OOjs UI to v0.1.0-pre (09b223d279)

Change-Id: I93bafa996b6fd8da1b140833a869074a6402f572
2014-05-29 08:44:43 -07:00
James D. Forrester 192a32ec84 Update VE core submodule to master (2490eb7)
New changes:
e806037 Add createSurface to base target
c15644c Convert toolbar structure group from bar to list
1d5929e Update OOjs UI to v0.1.0-pre (7b283a9dcc)
c2d6e51 Localisation updates from https://translatewiki.net.

Change-Id: Ife6f4fd24b845f12310352f01eaa474260aedfc0
2014-05-28 16:30:28 -07:00
James D. Forrester 4c0c47e7af Update VE core submodule to master (f340daa)
New changes:
4572291 Truncate undo stack before applying staged changes
79e7876 Move DesktopContext.css into desktop module
0c6f68c Localisation updates from https://translatewiki.net.
366774d Localisation updates from https://translatewiki.net.
f756c91 Localisation updates from https://translatewiki.net.

Change-Id: I255e628fc48461b636ae8767b5212910caf48365
2014-05-27 22:24:02 +00:00
James D. Forrester 7c7ad693c3 Update VE core submodule to master (d2c88c9)
New changes:
2350a59 Register target globally
163a129 Remove IE check (and possible compatibility) from beforepaste/paste event switch

Change-Id: I529a4c39a34854917da5f18663a7979cb6776517
2014-05-23 20:37:11 -07:00
Roan Kattouw 40fd403c0c Update VE core submodule to master (a42143c)
New changes:
3ecd488 Add check icon for Apply button in ActionDialog
3dccb7d .unbind() -> .off()

Local change:
Add new CSS file to VisualEditor.php.

Change-Id: I443f9f4514ae2a61c688549107e7f2e5de700b62
2014-05-23 18:42:02 +00:00
James D. Forrester 805dbdd5bb Update VE core submodule to master (1c1eb3a)
New changes:
7368ea3 Localisation updates from https://translatewiki.net.
712be31 Followup 682b4d0b88: bring this.isSetup back
78fd10e Document that SurfaceFragment#getSelectedNode doesn't require selection

Change-Id: I8df73bfc30b5bfeed88d5e96236991ce8bbae72d
2014-05-22 14:31:38 -07:00
Roan Kattouw 6c1c01c657 Update VE core submodule to master (b0a1e1a)
New changes:
36762de Localisation updates from https://translatewiki.net.
d040f9e Add SVG to image demo
c4523fb Always cover inserted content in SurfaceFragment#insertContent

Change-Id: Icef709a904255b2453d6a2f3ed081b1b12bdb042
2014-05-21 15:52:58 -07:00
James D. Forrester 7f0d6646dc Update VE core submodule to master (fa14d31)
New changes:
1bc3c99 Remove Firefox cursoring hack
5ebd89a Separate demo into mobile demo and desktop demo
3714877 Add test files to dependency tree
2aecf95 Localisation updates from https://translatewiki.net.
e750fb7 Update OOjs UI to v0.1.0-pre (d4086ff6e6)
363f2a1 Phantom optimisations
edfd5cb Localisation updates from https://translatewiki.net.
6fed173 Localisation updates from https://translatewiki.net.
0dd3402 Update OOjs UI to v0.1.0-pre (521a9e242b)
50ad883 Localisation updates from https://translatewiki.net.
501afaf Update OOjs UI to v0.1.0-pre (0fbf6bd14e)
cdaf6c1 Localisation updates from https://translatewiki.net.
682b4d0 Phantom optimisations, episode II
e1721a2 Move DesktopSurface and DesktopContext to visualEditor.desktop
857d463 Make $window a property of ce.Surface
fa14d31 Update OOjs UI to v0.1.0-pre (0436296667)

Change-Id: I13d7dd9289f273b938fdb070cec12ff998351265
2014-05-21 13:26:02 -07:00
Timo Tijhof 60672bde01 Update VE core submodule to master (ced9f77)
New changes:
168146b inheritdoc lowercase
dc4173e build: Update jscs and grunt-watch
df29ea9 Pass HTMLDocument to convertToData

Change-Id: I028c2b1222c93114c01fd70f06414e2930a5c513
2014-05-15 18:49:50 +02:00