Ed Sanders
2ee9e62a4d
Use upstream media search widget from core
...
Bug: T140166
Depends-On: If53ef7f4b62c7a5d4da565c14dd2a353778694e5
Change-Id: I28845e9c143e78d3a377f067606c62da212e3bf1
2016-11-29 17:19:14 +00:00
Ed Sanders
240ec23113
Handle missing pipes in Gallery syntax, and remove them when caption is empty
...
Bug: T146190
Change-Id: I703bcdf68b9631a47d839baf3abb42ff98b36bf2
2016-11-28 17:36:29 +00:00
jenkins-bot
6bcfed97a5
Merge "Separate out ArticleTarget as a module"
2016-11-26 23:22:32 +00:00
Ed Sanders
4fe6be1f34
Separate out ArticleTarget as a module
...
Also move save button command help registration to ArticleTarget.
Bug: T151096
Change-Id: I941d17254a2e20a82aa46fd538abf887d757c0c3
2016-11-24 12:35:41 +00:00
jenkins-bot
1909c445bb
Merge "Allow the gallery dialog to insert duplicate images initially"
2016-11-24 04:13:03 +00:00
Ed Sanders
0334263718
Missing i18n in gallery dialog
...
Change-Id: I369d5b9d42a5fd6b4d1afc12508632a282591320
2016-11-24 00:09:49 +00:00
jenkins-bot
fde5c3c2ff
Merge "Follow-up I63ab27cb: Get rid of notices tool when there are no notices"
2016-11-23 01:17:42 +00:00
Thalia
003ec7b653
Allow the gallery dialog to insert duplicate images initially
...
Change I94f4fadd84cd3e prevents the gallery dialog from inserting
duplicate images into the gallery dialog after one request (e.g.
so double-clicking on an image in the search widget doesn't cause
the image to be inserted twice). However, galleries can
intentionally contain duplicates of the same image, so it is
possible to make a spearate request to insert a duplicate image.
When the dialog is first opened, it requests all the images in
the gallery at once, so the above change was causing the
duplicates in an existing gallery to be dropped. Duplicates
should be allowed to be inserted following this initial request.
Bug: T150894
Change-Id: I34353bc9b8db947488474c4be52292e0a1447705
2016-11-23 01:02:35 +00:00
jenkins-bot
508b4164bd
Merge "Let gallery dialog handle unprefixed filenames"
2016-11-23 00:33:39 +00:00
Alex Monk
b89a6ee463
Follow-up I63ab27cb: Get rid of notices tool when there are no notices
...
Bug: T151423
Change-Id: I3dd9d2cbfb1fa536490eb8b4b7d630e9c6cfdd48
2016-11-23 00:30:06 +00:00
Thalia
2364f530a3
Let gallery dialog handle unprefixed filenames
...
The namespace prefix before image filenames is optional
in galleries, but the API requires it. If the prefix is
omitted, add the file namespace prefix.
Change-Id: I3d126550c2ad2e84454122f92307ba4bc943780b
2016-11-23 00:20:32 +00:00
Alex Monk
16e294fba7
Move around code that sets up edit notices to ensure it runs after we receive the notices to display
...
Bug: T151236
Change-Id: I63ab27cb236169f300295b2ed4c88e01048092e7
2016-11-22 19:16:09 +00:00
Ed Sanders
6e64fba2f8
Unbreak education popup
...
Tools only setup once now, and that is during the dummy surface
phase, so we have to setup the education popups then.
Change-Id: Idf46fe42c893c0692dc442226297253074ef9bd7
2016-11-21 15:19:58 +00:00
jenkins-bot
8fd396151c
Merge "Migrate DesktopWikitextArticleTarget code upstream"
2016-11-20 03:06:55 +00:00
Ed Sanders
e1a887ccf8
Migrate DesktopWikitextArticleTarget code upstream
...
Change-Id: Icca4715411737a561302b44b127d91d117e7e29b
2016-11-20 02:52:14 +00:00
jenkins-bot
3483055c29
Merge "Remove max-width from save summary"
2016-11-16 17:55:35 +00:00
James D. Forrester
f24e34de3c
build: Bump eslint-config-wikimedia to v0.3.0 and make pass
...
Change-Id: I7449c11aa63c50fda667265c32021439cc53471f
2016-11-15 15:05:05 -08:00
jenkins-bot
65604802ac
Merge "Fix attribute.style typo in gallery dialog"
2016-11-15 22:09:57 +00:00
Thalia
97af378bb5
Fix attribute.style typo in gallery dialog
...
Change-Id: I71162652df5e09c4d974e0f863ea661c4bd7902e
2016-11-14 22:26:39 +00:00
Thalia
810202395e
Normalise filename after image is chosen in gallery dialog
...
Bug: T150638
Change-Id: Iead7d0d3f8aa6c864dc6fba7089bab0767035812
2016-11-14 22:04:25 +00:00
Ed Sanders
37ccaca2ec
eslint: Re-enable wrap-iife and partially enable dot-notation
...
Change-Id: I4420d66f528dcb18ebe2b9f63996661b2969f833
2016-11-12 14:43:43 +00:00
Ed Sanders
003c5ac410
Use a blank temp document when selection is empty
...
shallowCloneFromRange can a broken document if you pass
a collapsed range. That should be fixed upstream but for
now this fixes a major bug (and is faster).
Bug: T150492
Change-Id: I9b539c588d91ef7f22e662c7cae0b3f89b21d33a
2016-11-11 00:08:11 +00:00
jenkins-bot
de72f77b1b
Merge "Collapse to end after inserting WT signature"
2016-11-09 20:00:05 +00:00
James D. Forrester
79befe3d67
MWExtensionWindow: Use #setDir, not the removed #setRTL
...
Change-Id: I4090fa0375a93e095a644538b52853fd849b8749
2016-11-09 11:13:09 -08:00
Ed Sanders
1cb4c27378
Collapse to end after inserting WT signature
...
Bug: T150320
Change-Id: I06a8304499d92d0155c112449678fef34dc98424
2016-11-09 15:26:44 +00:00
Ed Sanders
55fcded32e
Replace non-standard whitespace in comments
...
This is required to pass eslint:recommended.
Change-Id: If8c4876a366e5c021c414e54328ed1913b679969
2016-11-08 14:15:12 +00:00
Ed Sanders
526b2c0656
Remove max-width from save summary
...
Prevents mis-alignment of textbox and checkbox bar
on mobile.
Change-Id: I33d8a2bd4e30d2ed4d61942a7646299f9935bc32
2016-11-08 10:29:03 +00:00
jenkins-bot
5709e89399
Merge "eslint: Remove unused exception and fix documentation errors"
2016-10-28 19:12:19 +00:00
Ed Sanders
e655880d14
eslint: Remove unused exception and fix documentation errors
...
Don't enable valid-jsdoc yet though, due to @chainable bug.
Change-Id: I4d2a6de19c72c6e4c20733446616d8046419d431
2016-10-28 12:02:36 -07:00
jenkins-bot
bce6aeb92a
Merge "build: Replace jscs and jshint with eslint"
2016-10-28 18:43:15 +00:00
James D. Forrester
36befda61c
build: Replace jscs and jshint with eslint
...
It's new, it's fresh, it's amazing, it's here.
Change-Id: I5dc784411f704685ed5cc763a2b2b1c5d3e5a610
2016-10-28 18:33:15 +00:00
jenkins-bot
7085796ec3
Merge "Don't allow an image to be inserted into a gallery twice simultaneously"
2016-10-28 02:29:19 +00:00
jenkins-bot
db9d2e3cf5
Merge "Make meta dialog tools visibile but disabled in NWE"
2016-10-27 22:14:08 +00:00
Ed Sanders
fad3b429c8
Make meta dialog tools visibile but disabled in NWE
...
Following our unwritten rule of trying to keep the interface
as consistent as possible.
Change-Id: I58668acb5bac12de73b7b8f52e670f68336c399f
2016-10-27 14:48:51 -07:00
Ed Sanders
7bc59cd65c
Set mode of save dialog after setting size so footer is correct height
...
Bug: T149274
Change-Id: Ic88b1c861029495e6098686d847deb181f62288e
2016-10-26 20:09:21 -07:00
Ed Sanders
6358d9ed6d
CSS styleguide fixes
...
These will be enforced in future versions of stylelint-config.
Change-Id: I0689cbeee6586d2d3dcb0021a3f613dc2ac73691
2016-10-25 15:58:10 -07:00
jenkins-bot
dd30f86c52
Merge "Make ve-ui-mwGalleryDialog-image-container-highlighted rule more specific to ensure border-color rule takes effect"
2016-10-21 00:01:38 +00:00
Alex Monk
8414490dbf
Don't allow an image to be inserted into a gallery twice simultaneously
...
One after the other is okay though.
Also fix this so that, if the user is fast enough, two images simultaneously
also works.
Bug: T148558
Change-Id: I94f4fadd84cd3ed97d9676043cadc64f0e09f0b9
2016-10-20 02:22:34 +01:00
Alex Monk
77629cd374
Make ve-ui-mwGalleryDialog-image-container-highlighted rule more specific to ensure border-color rule takes effect
...
Bug: T148041
Change-Id: I39366884d44ea68780c3780042cf82e34408d098
2016-10-20 00:31:55 +01:00
Derk-Jan Hartman
406e9f8e9c
Enable conditional loading of ACE language modes
...
require bypasses Ace's internal loadModule() logic which is capable of
on demand loading of Ace modules. Because unloaded modules are not
defined, they cannot be required, and because we don't use RL to preload
all modes (because it's a lot of bytes), currently only very few of the
available language modes were currently available.
Also validate language mode names passed to Ace.
Bug: T148518
Change-Id: I82d278920695be12aa80a79548abf8b8ce5445fd
2016-10-19 02:23:17 +02:00
jenkins-bot
a9240d6f2f
Merge "Strip RESTBase IDs from HTML generated when wikitext is pasted"
2016-10-14 00:55:48 +00:00
Alex Monk
25933c09ec
Strip RESTBase IDs from HTML generated when wikitext is pasted
...
Bug: T146054
Change-Id: I0013673a9e41ea191ea64f3208a06288efb2ecd3
2016-10-13 17:42:11 -07:00
Ed Sanders
85f8030053
MWMediaSearchWidget: Fix indentation in var
...
It is alarming that jscs is not picking this up..
Change-Id: Ibd3b113ebfedede9fa45120c24f00623ec5ea2fb
2016-10-13 23:45:37 +00:00
Thalia
7ec7acf108
Take only the last part of a URL query in media search widget
...
Quick fix to the problem that searching for the file name or
page title currently returns the image, but searching for the
URL does not.
Bug: T121354
Change-Id: I13e665226e5dc15ba626126dc4806ce8f4e0040b
2016-10-13 21:54:10 +00:00
jenkins-bot
56c5ecb0f1
Merge "Fix sanitizing of query value in media search"
2016-10-13 04:14:10 +00:00
Ed Sanders
972094788c
Fix sanitizing of query value in media search
...
Always use #getQueryValue which trims whitespace, so we
don't pass whitespace to the API.
Also rename some variables for clarity, and remove some
unused arguments.
Change-Id: I0d27f59488295bc1c398d0fd287e3e16a3f5aaec
2016-10-13 04:03:57 +00:00
Thalia
91ca88f6e8
Set gallery dialog to larger size when search panel is focused
...
Bug: T145246
Change-Id: I49b218f704d31b4f699fe39f414a84abbfffc093
2016-10-12 17:42:54 -07:00
jenkins-bot
eafbe8cf8c
Merge "Add big/small support to NWE"
2016-10-08 21:00:35 +00:00
Ebrahim Byagowi
e55d1b2a3c
i18n: Native digits on 'visualeditor-editnotices-tool'
...
Change-Id: I5a802199a9d736d0082775052d5224cfa9580450
2016-10-08 18:36:36 +00:00
Ed Sanders
2ad4015775
Add big/small support to NWE
...
Change-Id: Id42cb7563d7f6d14d0f225edb8a283c8b9eaa8db
2016-10-07 22:44:52 -04:00
Ed Sanders
31a3f2f0b6
Move editfont class down to surface view, so it doesn't break DebugBar
...
Change-Id: I779ab9d581af37ae104acf4ea6a83b86504bb257
2016-10-07 16:10:58 -04:00
jenkins-bot
1321452197
Merge "New wikitext editor: unwrap lists when changing style"
2016-10-05 19:40:01 +00:00
jenkins-bot
26e235211d
Merge "Pass excludeCurrentPage option to TitleSearchWidget in link inspector"
2016-10-04 22:45:10 +00:00
jenkins-bot
9da0eaef03
Merge "Pre-load the article title in gallery dialog search"
2016-10-04 16:24:00 +00:00
Ed Sanders
69c332d1ad
New wikitext editor: unwrap lists when changing style
...
Bug: T147227
Change-Id: I1a7f86e2a97855be5c44671d8f5918fb87bc70d0
2016-10-03 16:16:04 -04:00
jenkins-bot
1e89ab7d7a
Merge "Remove commented out code"
2016-10-03 19:37:27 +00:00
Ed Sanders
755500b463
Remove commented out code
...
Change-Id: Ie3edc36c5d51eb7f6363416594a8aab37dec074c
2016-10-03 15:08:47 -04:00
jenkins-bot
d415a003cd
Merge "Apply user preference 'editfont' to NWE"
2016-10-03 17:01:11 +00:00
Ed Sanders
4d1f8b5928
Pass excludeCurrentPage option to TitleSearchWidget in link inspector
...
Logically depends on Ieade9d0ff for the actual functionality.
Bug: T147050
Change-Id: I2cc4fc170398c80d7f0103772bc56666685b8baf
2016-09-30 15:41:08 -04:00
Ed Sanders
2ce9979d36
Apply user preference 'editfont' to NWE
...
Expects I5f0433e9 in core
Bug: T145016
Change-Id: I3b57d566d2846ea284e620d7335c4a3f62df518a
2016-09-28 20:06:43 +00:00
Ed Sanders
ba8ca2ab73
Add wikitext sequences for lower heading levels
...
Bug: T146264
Change-Id: I0f9afad27ab11d4eb487c5a18c667eeead3f1c75
2016-09-28 11:59:55 -07:00
Thalia
1d8d4accff
Pre-load the article title in gallery dialog search
...
Bug: T145243
Change-Id: I4cd04dee4c875524ecdf90027dc878eb15f47ce6
2016-09-27 14:01:31 -07:00
Derk-Jan Hartman
fbdad82b99
Use slice instead of substring per code conventions
...
Change-Id: I5de8b485d287db097f2ad63a7edf75f86a86822d
2016-09-26 21:34:37 +02:00
jenkins-bot
720b97694e
Merge "Change mid-upload 'cancel' button to 'back'"
2016-09-26 18:34:38 +00:00
jenkins-bot
d9ed33208a
Merge "MWAceEditorWidget: Configure Ace with its base path"
2016-09-26 13:50:42 +00:00
Derk-Jan Hartman
148c6b53b4
MWAceEditorWidget: Configure Ace with its base path
...
Configure the basePath for Ace, so that its own loader knows from where
to lazy-load additional resources. This will enable all known modes and
the worker scripts for linting.
Bug: T124419
Change-Id: Ie71518917ab966743e8397b23ffb050ca47e9ff4
2016-09-26 14:54:42 +02:00
David Lynch
d28819f795
ui.MWLinkAnnotationInspector: skip internal link checking if the value has changed
...
If the value has changed since the event was fired, we're operating on old
data, *and* another event will have been fired for that change anyway. So
abort this check.
Bug: T146306
Change-Id: Ia6682ec0218fd3fbc573582753d815a56963eb71
2016-09-22 11:23:48 -05:00
Matthias Mullie
2b4948b0b6
Change mid-upload 'cancel' button to 'back'
...
Bug: T114938
Change-Id: I964708e1267223b181630b9bea5b19e2bdf242be
2016-09-22 16:13:57 +02:00
Ed Sanders
d8fb7b84d3
Only unregister WT string handler in WT handler factory
...
Bug: T144653
Change-Id: I91528b56ac3905a05e8da51455055537958e026e
2016-09-21 13:08:10 -07:00
Alex Monk
63fcefcfcd
Education popup: Put localStorage check inside try/catch
...
Bug: T146139
Change-Id: I5faf5f4fce2f3161ad62d3617d1bb1d750a44728
2016-09-20 22:04:53 +01:00
jenkins-bot
80e2b62c69
Merge "Simplify and fix category popup widget checks"
2016-09-20 01:00:17 +00:00
Volker E
ecab9df8bb
Update progressive
color to WCAG 2.0 level AA compliant color palette
...
Aligning instances of `progressive` color to WCAG 2.0 level AA compliant
color palette similar to changes in
I6fdb90af8b9dc5e5e026eb0c1bd13138c73da4cd
Change-Id: I2eda190f0a68de6dc8aa33724f2c8975327a061f
2016-09-19 15:25:45 -07:00
jenkins-bot
f0a819455e
Merge "Load icons where we can via RLIM"
2016-09-13 21:21:22 +00:00
Alex Monk
7888c688b7
Simplify and fix category popup widget checks
...
Bug: T86357
Change-Id: I9a85267f6da0077e2167a92f25a8dc41074e6548
2016-09-13 04:17:20 +01:00
jenkins-bot
645c947359
Merge "Move image-paste blocking to transfer handler match function"
2016-09-12 15:55:19 +00:00
James D. Forrester
da422b18d5
Load icons where we can via RLIM
...
This gets us the variants (which we need for OOUI 0.17.9); note that I've
cheated and used 0.17.9's colour for the MediaWiki theme's progressive flag
rather than 0.17.8's value of 347bff.
Change-Id: Ic436970e9298ea31f48c6cfdd04b80847aaebbee
2016-09-09 18:10:56 -07:00
Ed Sanders
5e22ef30fe
Add show preview to save dialog when in NWE
...
Bug: T142642
Change-Id: I679eaddfe9037dcf258d3ff7d1eaa44214f0e730
2016-09-07 21:35:49 +00:00
Ed Sanders
7a80fa57bc
Fix parent constructor call
...
Got broken in switch to using 'super'.
Change-Id: Icea95b49ad48849af857bfa3b301d3bcf6039036
2016-09-06 19:16:24 -07:00
jenkins-bot
b656f3d5f1
Merge "Use super property to call parent methods"
2016-09-01 17:04:39 +00:00
Ed Sanders
56c56e81fe
Move image-paste blocking to transfer handler match function
...
By not matching, we allow other types of paste to happen, e.g. HTML/plain text.
Bug: T142622
Change-Id: I3a2224ab23b5073eb7b031134ecc3170ccc782c0
2016-08-26 00:54:39 +00:00
jenkins-bot
f071b0380d
Merge "Vary the 'save' labels to 'publish' for public wikis"
2016-08-25 21:36:41 +00:00
jenkins-bot
d27863587a
Merge "Show a different label for buttons on create vs. modify"
2016-08-25 16:40:21 +00:00
James D. Forrester
deef47414a
Vary the 'save' labels to 'publish' for public wikis
...
Bug: T131132
Change-Id: I4a497265661d5ce0f6144988b514509dfa1bddfd
Depends-On: I56634ed223778a0650cf36ac7256151b13c494f1
2016-08-25 09:37:52 -07:00
James D. Forrester
b7c7d06968
Show a different label for buttons on create vs. modify
...
To align with the linked patch in MediaWiki core. Taking advantage of
the opportunity to use core's messages for these, and remove some dead
wood old messages that were never used like "restore" items in mobile.
Bug: T139033
Depends-On: Ie81b5edd275963a965cd44d0fd325cae9ee2f1a6
Change-Id: Ie00e94cc77cb750a7e8d1104366bb3dad65af8a4
2016-08-24 16:01:11 -07:00
Ed Sanders
62bdaac13b
Use super property to call parent methods
...
Change-Id: I76982b844cf2871d7583463def4393e5bdc33aa2
2016-08-23 11:56:47 -07:00
Ed Sanders
1d6746e89d
Fix insertion annotation for wikitext link inspector
...
Change-Id: Ib769e371743438b530f150fcb8104292288c35f9
2016-08-22 10:59:55 -07:00
Ed Sanders
c452e134cc
Wikitext surface alpha feature
...
Edit wikitext with the VE interace.
Bug: T104479
Bug: T142138
Change-Id: Ic95b47e0dd378578555c4a2342ca9c87064ed1d5
2016-08-12 18:37:29 +00:00
jenkins-bot
1fe827197d
Merge "Add titles to category input menu's items"
2016-08-08 21:56:43 +00:00
Alex Monk
071291d624
Add titles to category input menu's items
...
To match where they point to.
Bug: T139189
Change-Id: I46454cc9cd90920dc5e445200598a4706a8639c9
2016-08-08 21:09:36 +01:00
jenkins-bot
cf4c2d41b3
Merge "Rewrite TOCWidget based on Linker::generateTOC"
2016-08-05 22:18:22 +00:00
jenkins-bot
89a529edc1
Merge "Fetch default options for gallery dialog"
2016-08-05 21:20:00 +00:00
Ed Sanders
bb7b38575f
Rewrite TOCWidget based on Linker::generateTOC
...
Use the new node cache to find headings.
Change-Id: I5eb75c5db5ca466fd6f16a57c693c2a4458cff7c
2016-08-05 14:11:15 -07:00
Thalia
d156af59aa
Fetch default options for gallery dialog
...
Fetch default options for mode, image heights and image widths
rather than hard-coding them.
Bug: T139632
Change-Id: I1adc7987fdeb1258ee87ce46acbab469ea18116e
2016-08-05 14:08:20 -07:00
Thalia
7d4864729b
Make image list keyboard accessible in gallery dialog
...
Bug: T140874
Change-Id: I0f00f1ddb397fb8f543a04d62b94fc5db32180f6
2016-08-04 16:34:12 -07:00
David Lynch
53ad07ed72
MWLinkAnnotationInspector: change where auto switch to external occurs
...
OnInternalLinkChange happened post-validation, and received an already title-
normalized version of the href. Thus `file://` would become `:File://`. As
such, hook up to the raw internal link input change event, and judge what the
user actually entered.
Bug: T138956
Change-Id: I0f9f3de3b7bf6e5430e55fa69626522b0c74296a
2016-07-28 11:00:36 -05:00
jenkins-bot
11695a8528
Merge "MWLinkAnnotationInspector: switch to external tab on any schema"
2016-07-28 03:35:18 +00:00
David Lynch
a95e6cab08
MWLinkAnnotationInspector: switch to external tab on any schema
...
Currently the switch only happens if it's a valid schema. Instead, switch if
any schema at all is detected, so we can tell the user it's invalid. If they
really meant to link to an internal wiki-page that just happens to start with
a "schema://", they can switch back to the internal tab to force it.
Bug: T138956
Change-Id: Icfd74157fd8439920668a417661265ddd52c9a21
2016-07-27 17:10:52 -05:00
Ed Sanders
6064eb3dc4
Fix preview to use a valid document slice
...
An inline content node must exist inside a content branch node (paragraph).
Bug: T141306
Change-Id: I6bf2f99938940c1a5e34db16fbe582b15991a7c6
2016-07-26 16:06:07 +01:00
jenkins-bot
522b3498ce
Merge "MWGalleryDialog: Add new 'slideshow' mode"
2016-07-21 00:54:08 +00:00
David Lynch
ef7652fdfc
Move internal-link detection into the InternalLinkAnnotationWidget
...
If internal link detection is in the LinkAnnotationInspector, it falls down
when a valid URL which isn't also a valid page title (e.g. percent-encoded
titles) is pasted into the input. This is fixed by moving the detection to the
input's change handler before any validation can occur.
Bug: T119431
Change-Id: I1eb2040dd918fdcc22c28594b5cbad835cf384a8
2016-07-15 13:51:35 -05:00