Commit graph

10533 commits

Author SHA1 Message Date
Alex Monk 7c2f6e1f5f Don't break when you cancel the link inspector
Bug: T111241
Change-Id: Iff96aa4d97fe64a2472a58b3bf782085313899c6
2015-09-02 21:30:51 +01:00
Translation updater bot c503547e47 Localisation updates from https://translatewiki.net.
Change-Id: I6aad78decfbb76f3ea704a381971ff73cb5f31cb
2015-09-02 21:39:43 +02:00
jenkins-bot 38a94dd8d5 Merge "Fix cancelling of extension inspectors" 2015-09-02 11:50:18 +00:00
Alex Monk a02d8573b4 Fix cancelling of extension inspectors
* Don't insert/update/remove nodes on cancel in MWExtensionInspector
* Don't forget to popStaging on cancel in MWLiveExtensionInspector

Bug: T110992
Change-Id: I1e30206595e304eb502c7e745bf5e00d145d12d7
2015-09-02 02:32:11 +01:00
Ed Sanders 471df53aaf MWLinkInspectorTool: Add parent method call to #updateState
Bonus: No need to check if fragment is a SurfaceFragment.

Bug: T111099
Change-Id: Ieaa3ee979477175d0f129e30838853bc04937fad
2015-09-01 21:09:13 +00:00
Translation updater bot 2462889843 Localisation updates from https://translatewiki.net.
Change-Id: I42f1f5497936b7fb0a5af3050a5955ec1508640c
2015-09-01 21:46:35 +02:00
Ed Sanders b9183540ef Remove explicit setting of ce=false on FocusableNodes
FocusableNode already sets ce=false so this is redundant.

Change-Id: I4432dd0a5e5dff3f8e909f2d7c1912f3d69e1b70
2015-09-01 18:51:54 +00:00
jenkins-bot 8502d3ea05 Merge "Specialized inspector for ISBN magic links" 2015-09-01 18:34:23 +00:00
C. Scott Ananian 7cc23367f6 Specialized inspector for ISBN magic links
Implement a special node type, context item, and inspector for
ISBN/PMID/RFC magic links.  Add buttons to the link inspectors
to convert back and forth between "simple" links, and magic links.

Depends on I5d000d8b63dafdfe0a2753069d3f0ac5b03b8829 in Parsoid
for clean round-tripping of localized ISBN magic links.

Bug: T63558
Change-Id: Id5b7a2ae3c80b0e5eed598f0bd024d3e94f7e9aa
2015-09-01 14:25:59 -04:00
jenkins-bot 8f96550044 Merge "<visualeditor-dialog-media-size-section-help>: Fix grammar" 2015-09-01 18:09:53 +00:00
maurelio febd93b1d4 <visualeditor-dialog-media-size-section-help>: Fix grammar
Requested at TranslateWiki.Net:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Visualeditor-dialog-media-size-section-help/en

Change-Id: I8842dbbf57f8be5d4f2fcc320b73a9d8f0a2c6e3
2015-09-01 18:06:00 +00:00
James D. Forrester 1aab5a2322 Update VE core submodule to master (62cf769)
New changes:
62cf769 Store find and replace toggle states in user config

Local changes:
* Register new visualeditor-findAndReplace-* options

Change-Id: I5934882f25614bd79488fff7e8fa0af5ede0af38
2015-09-01 10:50:06 -07:00
jenkins-bot 61e753ec89 Merge "Implement getUserConfig and setUserConfig in MW" 2015-09-01 17:22:27 +00:00
jenkins-bot 65c073813e Merge "Rerender extension node immediately if no images exist" 2015-09-01 14:57:41 +00:00
jenkins-bot 6521b4a76e Merge "Allow trailing punctuation for typed ISBN/PMID/RFC autolinks" 2015-09-01 14:39:29 +00:00
Ed Sanders 519e029298 Rerender extension node immediately if no images exist
Bonus: Filter out images which already have width/height defined

Bug: T110314
Change-Id: I9fbd5050bb5d10c9c24a2b761f6248da8179bf72
2015-09-01 09:50:58 +00:00
Ed Sanders e4c351e362 Implement getUserConfig and setUserConfig in MW
Depends on I5704a0e3e0 in core.

Change-Id: I0d6c9317a91dc02566d8877bd1aefae581213cbb
2015-09-01 01:03:38 +00:00
James D. Forrester efcc8a9781 Update VE core submodule to master (83c5ca4)
New changes:
fdf0756 Localisation updates from https://translatewiki.net.
686f1cc tests: Use model-only surface in ListAction test
4b5ede7 tests: Reuse test view in paste tests
14a0f11 tests: Re-use example surface across surface view tests
94105a7 Localisation updates from https://translatewiki.net.
b505daf Follow-up 94105a7: Fix build for added language 'en-ca'
83c5ca4 Platform: Add user config methods

Change-Id: Ic24413beac9bc0f454ba1e077e5f4f1ef210640d
2015-08-31 17:50:01 -07:00
jenkins-bot c6a70d8f07 Merge "MWReferenceNode: Don't allow cross-VE paste of template-defined ref" 2015-08-31 21:59:48 +00:00
Ed Sanders c6236b7b77 MWReferenceNode: Don't allow cross-VE paste of template-defined ref
The reference body is not available, so it would be useless.

Bug: T110479
Change-Id: I2a40178bc629ca65d7507feb1c5ff062fd591eda
2015-08-31 14:50:19 -07:00
Translation updater bot 3229649d23 Localisation updates from https://translatewiki.net.
Change-Id: I1e7c368f463417145afcee2c7bb553760f68de57
2015-08-31 22:29:16 +02:00
jenkins-bot 5025d5ca93 Merge "Update VE core submodule to master (ff259df)" 2015-08-31 20:01:05 +00:00
Translation updater bot 4a76978933 Localisation updates from https://translatewiki.net.
Change-Id: I481726d71efddc6b8f341d186d2f19863634a7fb
2015-08-30 21:11:42 +02:00
James D. Forrester 2b88dc2f8b Update VE core submodule to master (ff259df)
New changes:
138a7f8 Fix focusable mouseout
e09bf84 AnnotationInspector: Only show 'insert' when content is to be inserted
56aba4b Clear query when regex is invalid
9a96112 Localisation updates from https://translatewiki.net.
284cadf Check surface is visible before trying to render fragments
ff259df Localisation updates from https://translatewiki.net.

Change-Id: I870f100b537992a690e9da8dc3b01b16aafe0f68
2015-08-29 13:18:44 -07:00
Translation updater bot 3f0be19d56 Localisation updates from https://translatewiki.net.
Change-Id: I0d2732c724ac3c422eb76a269be789fd0805e62a
2015-08-29 21:47:45 +02:00
C. Scott Ananian 96e330650d Use RESTBase v1 API
This requires https://gerrit.wikimedia.org/r/214351 in core, which adds
support for emulating the RESTBase v1 API to the
ParsoidVirtualRESTService.

$wgVisualEditorPrefix is now deprecated.  Parsoid is configured using
VRS (preferred) or $wgVisualEditorDomain, which defaults to
$wgCanonicalServer.

This bumps our MW-core dependency to 1.26wmf21.

Bug: T110780
Change-Id: I9175ac8db8310f0c9574c8272b5e39932557d57e
2015-08-29 02:12:29 +00:00
Translation updater bot e0cd477c09 Localisation updates from https://translatewiki.net.
Change-Id: Id0806b0e5352b3ef559a8aa02283af0f5155edd6
2015-08-28 21:55:30 +02:00
C. Scott Ananian 3ce4ac25f8 Allow trailing punctuation for typed ISBN/PMID/RFC autolinks
Bug: T110690
Change-Id: I7d3b550588a75b08b1a587705f02a86ab7c5806c
2015-08-28 12:41:38 -04:00
Translation updater bot 397c5ce65e Merge "Localisation updates from https://translatewiki.net." 2015-08-27 19:40:29 +00:00
Translation updater bot c0c1b542b3 Localisation updates from https://translatewiki.net.
Change-Id: Iefbd74f51a24c9018fed8cd5551e5d2eb0927380
2015-08-27 21:38:37 +02:00
jenkins-bot 64c73a4ac6 Merge "ve.dm.MWReferenceModel: Require parent document" 2015-08-27 15:38:01 +00:00
Roan Kattouw e4d2d4785e ve.dm.MWImageModel: Require parent document
Add a parentDoc parameter to the MWImageModel constructor and use
it to inherit language, direction and HTML document. Remove
getLang(), setLang(), getDir() and setDir() whose only purpose
was to propagate the language and direction from the parent document
in a hacky way.

Also add a parentDoc parameter to newFromImageAttributes(), replacing
the lang and dir parameters. Remove the unused and ill-conceived
caption parameter.

This causes caption documents to always have an HTML document
for URL resolution. Previously, this worked when editing existing
images because a document generated by cloneFromRange() (which
propagates the HTML document) was passed into setCaptionDocument(),
but it didn't work when creating new images.

Bug: T109599
Change-Id: Ida36862092cd779ffc2f04c0ecbc1164f8d71453
2015-08-27 00:09:21 -07:00
Roan Kattouw f11fbee278 ve.dm.MWReferenceModel: Require parent document
Add a parentDoc parameter to the MWReferenceModel constructor and use
it to inherit language, direction and HTML document. Remove
getLang(), setLang(), getDir() and setDir() whose only purpose
was to propagate the language and direction from the parent document
in a hacky way.

This causes ReferenceModel documents to always have an HTML document
for URL resolution. Previously, this worked when editing existing
references because the newFromReferenceNode() code path calls
cloneFromRange() which propagates the HTML document, but it didn't work
when creating new references.

Bug: T109599
Change-Id: I5d9d34d4343be8428318fa0b795fa54c110e34f4
2015-08-26 23:48:45 -07:00
James D. Forrester fc5ff16548 Update VE core submodule to master (9123d3b)
New changes:
39bde8f Localisation updates from https://translatewiki.net.
1594ab6 Update OOjs to v1.1.9
e35bb54 Update OOjs UI to v0.12.6
6140eb6 Don't using start selection to position context for focusable nodes
81e5876 Localisation updates from https://translatewiki.net.
9123d3b [BREAKING CHANGE] Remove ve.selectEnd()

Change-Id: Icd1899b9e28bb12ab789f727a3f428b09a05fffb
2015-08-26 16:56:46 -07:00
Roan Kattouw 6eee029159 MWSaveDialog: Use .moveCursorToEnd() instead of ve.selectEnd()
ve.selectEnd() removed by I44f43f312c78 in VE core.
Depends on Ia63e6c6a0 in OOjs UI.

Change-Id: Ic7ed8a24abd8288d68cf89839a553a569081e8c7
2015-08-26 23:51:58 +00:00
Jforrester f78e7c7cbd Remove compatibility aliases for old ve init modules
Not to merge before 2015-09-07.

This reverts commit 90e2111c95.

Change-Id: Iefb748c5fc7b010e7c4d95d6fb24265f004a386c
2015-08-26 23:29:04 +00:00
jenkins-bot ac4a615679 Merge "page-not-found*.svg: Provide semi-flipped variant for he, yi" 2015-08-26 23:28:24 +00:00
James D. Forrester 463077e05c page-not-found*.svg: Provide semi-flipped variant for he, yi
Bug: T110429
Change-Id: Ieef0e8f068e22baabb1aa509bdd110ec9533d996
2015-08-26 23:21:54 +00:00
Translation updater bot 3bc05ef3b2 Localisation updates from https://translatewiki.net.
Change-Id: I3d00d7b1adb5b6c32de29f771e7eaf1eb4478a80
2015-08-26 21:49:39 +02:00
jenkins-bot c010450e08 Merge "Move MWReferenceSourceSelectWidget out to Citoid" 2015-08-26 15:40:19 +00:00
jenkins-bot e7c621b5c5 Merge "bin/listRecentCommits.sh: Don't try to loop over OOUI commits" 2015-08-26 00:58:47 +00:00
jenkins-bot 443b92c238 Merge "Hooks: Don't show the tab just to hide it when 'DisableForAnons' is true" 2015-08-25 21:58:17 +00:00
Translation updater bot f5e5cbca69 Localisation updates from https://translatewiki.net.
Change-Id: I4f04df926b7f528b9a83ffdbdf402b41086ec057
2015-08-25 21:59:14 +02:00
James D. Forrester aadadbabd0 bin/listRecentCommits.sh: Don't try to loop over OOUI commits
Change-Id: Id886445c3277119ec960079ba33109f1bceaf23d
2015-08-25 10:27:20 -07:00
jenkins-bot c02874842b Merge "Fix pattern for matching wikitext headings" 2015-08-25 16:23:15 +00:00
jenkins-bot e7a9af30d8 Merge "Use mw.Title to localise file: prefix on new images" 2015-08-25 16:23:12 +00:00
Ed Sanders 6e44d8a7c0 Use mw.Title to localise file: prefix on new images
Bug: T110104
Change-Id: I25e28367bf4b00a0447c941b7359ebff5fe59147
2015-08-25 17:17:49 +01:00
jenkins-bot fcddd07a03 Merge "Use new internal link builder" 2015-08-25 16:01:14 +00:00
James D. Forrester 44d6ca61ad Update VE core submodule to master (bf76dd7)
New changes:
4344098 Increase width of desktop context, inspectors to 400px
0970f8a Refactor surface config compilation
58c0491 Put spaces between multiple links when pasting
9d13857 Localisation updates from https://translatewiki.net.
bf76dd7 LanguageInspector: Make the widget use one line for language

Change-Id: I79688eaf55547af8749230f589427df7ded5bcb0
2015-08-25 08:55:35 -07:00
James D. Forrester ea950aba3f Hooks: Don't show the tab just to hide it when 'DisableForAnons' is true
Change-Id: I11cca7e0acbce52335dfadcead97303329d9a33f
2015-08-25 15:55:04 +00:00