Ed Sanders
2614d071ad
Update CodeMirror to 5.35.0
...
Change-Id: I4da7497600189b6c87c9fcb829f7876c98bf4929
2018-02-28 12:14:29 +00:00
Ed Sanders
cc611f4254
TextSelection: Make chainable methods chainable
...
Bug: T188119
Change-Id: I40030e1cbd3bc77a0db424d38cd61815deac2e12
2018-02-26 11:47:43 +00:00
jenkins-bot
b0ee15034a
Merge "VE: Match whitespace rendering of ve.ce.TextNode"
2018-02-25 22:40:46 +00:00
jenkins-bot
348949d15b
Merge "Defer update of CM surface to avoid invisible text"
2018-02-25 20:58:45 +00:00
Ed Sanders
8e3d96f75f
Defer update of CM surface to avoid invisible text
...
Bug: T185184
Change-Id: I0b115d892ab322911c895dda030b77f35cc9195a
2018-02-25 18:05:19 +00:00
Ed Sanders
8b27277b20
VE: Refresh rendering after surfaceReady
...
Bug: T188215
Change-Id: I4c53f554d8091aa71ce59fe04857b588209639d3
2018-02-25 17:58:32 +00:00
Ed Sanders
452d6d0a80
VE: Match whitespace rendering of ve.ce.TextNode
...
Bug: T187694
Change-Id: Ie27e9862e0f55fcc10af91a2bdd9c5d21d49ddc4
2018-02-19 10:43:53 +00:00
Ed Sanders
3e0d9773d4
textSelection: Replace encapsulateSelection with replaceSelection
...
encapsulateSelection is now defined in terms of other methods,
so we don't need to duplicate it here.
Follows on from T185917.
Change-Id: I1f99b3140ed363658ed2724a58c8b34ef20769fa
2018-02-09 10:31:47 +00:00
Ed Sanders
b05b537744
Simplify textSelection overrides using 'register' and 'unregister'
...
Also add support for .textSelection() on the .CodeMirror element.
Change-Id: I46ac070ca141c3c2f993bee6ab898c96cb1edd4f
2018-01-30 06:38:50 +00:00
Ed Sanders
e795883f0d
NWE: Fix padding in Vector
...
Bug: T185299
Change-Id: Iea8e61654608259ddc90286aef59014a37e4f44d
2018-01-19 10:13:53 +00:00
jenkins-bot
6a2d427a9b
Merge "Make NWE integration background transparent"
2018-01-04 16:30:52 +00:00
jenkins-bot
f3f82ae47a
Merge "Fix WikiEditor dependencies"
2018-01-04 16:30:22 +00:00
Ed Sanders
8d998f97ed
Make NWE integration background transparent
...
Allows for VE's placeholder text feature to work.
Change-Id: Ieee01baf3dc049f248a97408af70499dcea8f4c9
2018-01-04 12:37:42 +00:00
Ed Sanders
12d420b7e9
Fix WikiEditor dependencies
...
Change-Id: Ibaa17e581ada5fcb202217797e70f9fed2510ec4
2018-01-04 12:36:55 +00:00
Ed Sanders
9df6ec9df8
Expect that deprecated mediawiki.toolbar may not be available
...
Bug: T177098
Change-Id: Icaf51c234981b4572362a0d76bf0b4b6653f3854
2018-01-04 12:35:36 +00:00
Ed Sanders
9960ed601f
Remove font-size now it is set by editfont
...
Bug: T180678
Change-Id: Ic9e8bdb3b34dbb2f2c5748d6bb57e9da90112118
2017-12-21 12:21:57 +00:00
jenkins-bot
4df91bb67a
Merge "Fix target detection for jquery.textSelection overrides"
2017-12-21 01:07:21 +00:00
Max Semenik
dee8f42080
Fix target detection for jquery.textSelection overrides
...
CM intercepted textSelection() globally but assumed
nobody will ever need to call it for anything but wpTexbox1.
Thus, attempts to get edit summary returned article text.
Lots of things can probably be fixed in this area, but here's
the beginning.
Bug: T177175
Bug: T179287
Depends-On: I113394a473e8fe534f17815676ec7014203db7d6
Change-Id: I72d7d72b2a891a0ad242a565dddc076fa6dd1bd1
2017-12-19 21:00:14 +00:00
jenkins-bot
d25705d804
Merge "Disable WebkitTextFillColor in Firefox+OSX"
2017-12-12 19:44:09 +00:00
Niharika Kohli
a6c9441490
Don't break codemirror if wikEdDiff is enabled, only if wikEd is enabled
...
Bug: T178348
Change-Id: If579d4da99f364e73dec5a7e6bed87019431386b
2017-12-05 19:15:12 +05:30
David Sn
62894aafff
Update comment text color CSS
...
This patch changes the comment text color
to #84A0A0, as suggested by Kaldari in T170067.
Bug: T170067
Change-Id: I016b8ce360a06f14b02cee13b629fa578c889347
2017-12-05 09:32:34 +00:00
jenkins-bot
daef8e333c
Merge "Unify BetaFeatures SVG screenshot markup"
2017-12-01 19:23:28 +00:00
Prateek Saxena
d0653940df
Unify BetaFeatures SVG screenshot markup
...
- sort attributes
- indentation
- remove unnecessary ids
Bug: T180427
Change-Id: I04d37d4c58aa3499af241dc434985a98a13f51ea
2017-12-01 18:52:17 +00:00
Ed Sanders
80241fb717
Disable WebkitTextFillColor in Firefox+OSX
...
Avoids opaque selection covering text.
Bug: T175223
Change-Id: Iede96501d4a03ccd80488b4661c18647eb9118e1
2017-11-30 18:05:52 +00:00
Ed Sanders
0296e2dcad
Fix typo in name of non-webkit hide class
...
Also increase opacity to 40% so selection & cursor
are more visible.
Change-Id: Ia957f816de9003eb8b709de3d7993bbfef99e3bc
2017-11-30 16:35:57 +00:00
jenkins-bot
530c2e3684
Merge "Remove eslint-disable-next-line no-use-before-define"
2017-11-29 19:04:25 +00:00
Fomafix
394a8b7183
Remove eslint-disable-next-line no-use-before-define
...
Since 7ac2322
this is not needed anymore.
Change-Id: I4cc5ea402286e418b30fd9ddba72c7ef434fbcb2
2017-11-25 23:07:57 +01:00
Prateek Saxena
e7154d0852
Update betafeatures icons' colors
...
Base80, Yellow90, Yellow50, Accent50
Old: https://phabricator.wikimedia.org/F10949243
New: https://phabricator.wikimedia.org/F10949242
Bug: T180427
Change-Id: Iebd9026b37bf63d66a3d0976302e09c4df59e81d
2017-11-23 10:36:04 +05:30
jenkins-bot
99b919f626
Merge "Execute codeMirror.save() on beforeunload"
2017-11-08 00:21:15 +00:00
jenkins-bot
5cd02ddca7
Merge "Moving code for adding the toolbar button to its own function"
2017-11-07 03:24:29 +00:00
jenkins-bot
d2855c76f4
Merge "Make textbox height flexible with CodeMirror"
2017-11-07 01:26:17 +00:00
Niharika Kohli
a0062e3100
Make textbox height flexible with CodeMirror
...
Bug: T170906
Bug: T176449 (hopefully)
Change-Id: Ic0ac663c413db5c29ae786d3c17f7396ad620226
2017-11-06 17:20:51 -08:00
Kaldari
a6e4f5c6d6
Prevent loading CodeMirror if wikEd gadget is enabled
...
Not a great solution, but will prevent most of the damage in the
meantime, for example, people losing their edits.
Bug: T178348
Change-Id: I434878a2325df01ad27f590f296738ff1f93320f
2017-11-06 14:48:50 -08:00
Kaldari
763e8cbf0b
Moving code for adding the toolbar button to its own function
...
This is to make the code more readable and easier to follow.
Change-Id: I6972038ca8a45bf3d0c119e93cf1af70dd424a82
2017-11-06 14:33:38 -08:00
Fomafix
7ac2322b23
Reorder functions to avoid forward references
...
The eslint-disable-next-line no-use-before-define are removed.
Change-Id: Ifad97ac467b7bf4b1051015129eca3e2f5a32807
2017-10-16 06:20:19 +02:00
jenkins-bot
36c096c86f
Merge "Remove call codeMirror.save()"
2017-10-13 01:55:20 +00:00
jenkins-bot
61bd4d7c92
Merge "Disable spellchecking for Firefox users on non-Mac systems"
2017-10-04 23:55:03 +00:00
jenkins-bot
02062173b6
Merge "Turn on native CodeMirror spellcheck feature"
2017-10-04 23:54:32 +00:00
Niharika Kohli
29f6b48eeb
Disable spellchecking for Firefox users on non-Mac systems
...
Bug: T95104
Change-Id: I86dbee82def94a38156f090d519f969f221c72e1
2017-10-04 15:37:02 -07:00
jenkins-bot
ca3ff81fc1
Merge "Remove reference to editfont-default"
2017-10-03 18:48:23 +00:00
jenkins-bot
76671dc662
Merge "Respect beta feature in new wikitext editor"
2017-09-29 05:37:46 +00:00
jenkins-bot
ea352c0f95
Merge "Set 'clear: both' on .CodeMirror for compatibility with gadgets"
2017-09-28 16:01:31 +00:00
Pavel Astakhov
249d757470
Update CodeMirror library to 5.30.0
...
Bug: T176685
Change-Id: I551b3b335be9b9ec05625482a14c32cc994f8df1
2017-09-26 09:28:20 +06:00
jenkins-bot
3f226d7223
Merge "Fix cursor position after extension loads"
2017-09-26 00:55:25 +00:00
Ebrahim Byagowi
975fddb114
Set 'clear: both' on .CodeMirror for compatibility with gadgets
...
.CodeMirror is supposed to magically replace it. Some gadgets'
interface displays incorrectly without it.
Change-Id: I27e2b5b462aa445a13f50dc99af57b4bb0ad3067
2017-09-19 21:37:05 +04:30
Fomafix
058037bba2
Remove call codeMirror.save()
...
codeMirror.toTextArea() already calls codeMirror.save().
Change-Id: Ifeb8c482149540832d6389a9337baffbf9ec03fb
2017-09-19 14:10:34 +02:00
jenkins-bot
1b6637bd43
Merge "Fix for function mw.toolbar.insertTags in chrome and IE"
2017-09-15 23:00:20 +00:00
Niharika Kohli
150cf016b2
Turn on native CodeMirror spellcheck feature
...
It's not fullproof. There's bugs where it forgets a string is misspelled
after re-rendering. But it's better than nothing.
Bug: T95104
Change-Id: I33718a71ff5734912ac59be2cd9575dd662ec2f7
2017-09-14 12:59:44 -07:00
jenkins-bot
5128648e0b
Merge "i18n: use correct language and direction"
2017-09-13 18:45:12 +00:00
Ebrahim Byagowi
a3e4ea6789
i18n: use correct language and direction
...
Change-Id: I6fd368f923b52a299633acb361748317ec18bdd1
2017-09-13 22:32:46 +04:30
Pavel Astakhov
cd4bdebe8b
Add highlighting of double underscore Magic Words as __TOC__
...
For testing:
__NOTOC__
___NOTOC___
____NOTOC____
_____NOTOC_____
______NO!TOC__NOTOC____
______NO{{TOC}}_____
______NO[[TOC]]_____
______NO'''TOC'''_____
__nOtOc__
FFFFF___NOtoc______
'''____________NOTOC______'''
__TOC___TOC__
__TOC____TOC__
___TOC_____TOC___
__TOC___TOC__
___NOTOC___
____NOTOC____
_____NOTOC_____
______NO!TOC__NOTOC____
______NO{{TOC}}_____
______NO[[TOC]]_____
______NO'''TOC'''_____
__nOtOc__
FFFFF___NOtoc______
{{__TOC__|__TOC__}}
Wrong, but not a big problem:
[[__TOC__|__TOC__]]
Bug: T170041
Change-Id: I0b2cfd02550c2685d241bdf3596507c5972878d5
2017-09-13 10:43:41 +06:00
Pavel Astakhov
3ce3e5554b
Change the sas.js file mode to 0644
...
Change-Id: I759d135386f98e9eb32ce6fef932f73b4c05fb20
2017-09-12 11:14:10 +06:00
Sam Wilson
0ca61108d1
Change popup label colour to green
...
This is to stop it looking so much like a link that can be clicked on.
Bug: T174219
Change-Id: Icdae8ddf32aa0c08fe0d708eb289bafe53f9b589
2017-09-12 08:29:49 +08:00
jenkins-bot
a8c4d4716e
Merge "Fix word jumping (option+arrow key) for Mac"
2017-09-11 21:38:31 +00:00
jenkins-bot
53588392f9
Merge "Take out gray background behind indenting bullet in syntax highlighting"
2017-09-11 21:03:28 +00:00
Pavel Astakhov
e727726d2a
Fix word jumping (option+arrow key) for Mac
...
Bug: T175378
Bug: T174055
Change-Id: I7f648691ec3b36f9abe1c5c7fbe5c97e142f500e
2017-09-11 13:56:00 -07:00
jenkins-bot
9ba136850c
Merge "Join the popup label into one message"
2017-09-11 20:19:03 +00:00
jenkins-bot
fdb006a17c
Merge "Fix home/end behavior"
2017-09-11 20:17:38 +00:00
jenkins-bot
ef1d9c2be9
Merge "Update CodeMirror library version to 5.29.0"
2017-09-11 20:17:22 +00:00
jenkins-bot
dba972cf9c
Merge "Simplify setTimeout"
2017-09-11 18:57:43 +00:00
Fomafix
f740a5cb2f
Execute codeMirror.save() on beforeunload
...
This allows the browser to store the textarea on history changes.
Bug: T175509
Change-Id: I8cb2c492582e77bde0e666cd363d31e28bf960e4
2017-09-11 20:26:13 +02:00
Pavel Astakhov
701cdca90b
Fix home/end behavior
...
Bug: T174514
Change-Id: I0f07ac1f4f3bc3a42c620ce88be026fdf42450c6
2017-09-11 21:01:43 +06:00
Fomafix
eca881d11f
Simplify setTimeout
...
* Use setTimeout instead of window.setTimeout.
* Directly call function and avoid anonymous function.
Change-Id: Ic396ef744d58fb722761a66f38390d2bb4848c2d
2017-09-11 16:19:55 +02:00
Sam Wilson
b4b9da7e51
Join the popup label into one message
...
The popup label was being styled as two words from two different
i18n messages, each a different colour. This combines them into
one, moves the identifing class name up to the outer span, and
colours both words blue (the outer braces are left black).
Bug: T174219
Change-Id: Id1166f48ae4b3b8daff29be56dd92ef330dd9cef
2017-09-11 10:23:22 +08:00
Niharika Kohli
279103fea9
Render everything as long as user doesn't start typing/moving cursor
...
Bug: T174480
Change-Id: I106b1d0d2a68e8ba2b346fd6aaf06b530d18f8d4
2017-09-08 14:11:01 -07:00
Pavel Astakhov
0ea00f2b0e
Update CodeMirror library version to 5.29.0
...
Bug: T174731
Change-Id: I048270eea67945d959559f68468a39976d777410
2017-09-05 09:39:06 +06:00
Pavel Astakhov
41e83d2984
Take out gray background behind indenting bullet in syntax highlighting
...
Bug: T165001
Change-Id: I51576f46a8d204784755ef645bb5daf1930fe74e
2017-09-04 16:03:10 +06:00
jenkins-bot
94a08e27d6
Merge "Do not redefine the browser history navigation keys Alt-Left and Alt-Right"
2017-09-04 09:06:57 +00:00
Pavel Astakhov
f71d17d8d1
Fix for function mw.toolbar.insertTags in chrome and IE
...
Bug: T164905
Change-Id: I15b60944a95f94b4a2e3b929fe4d00fe757961bd
2017-09-04 14:54:26 +06:00
Pavel Astakhov
e1eaac762d
Fix cursor position after extension loads
...
Bug: T174547
Change-Id: I8ce2c61884410c4ca47bd8cbc11d0902df7f1d4a
2017-09-04 13:49:06 +06:00
Ed Sanders
f5210867ba
Respect beta feature in new wikitext editor
...
Bug: T173480
Change-Id: I2ca5a33f09aefe0c3d31082270869a13cee14fc4
2017-08-30 22:53:55 +01:00
jenkins-bot
ba091f4ee8
Merge "Add RTL support in VE source editor mode"
2017-08-29 15:59:28 +00:00
jenkins-bot
1e1a55600e
Merge "Don't assume action=edit/submit is the old wikitext editor"
2017-08-28 10:44:41 +00:00
Max Semenik
54c032d732
Fix exception on some combination of quotes
...
Bug: T174060
Change-Id: Ie53b7260a98519f45d38d2a705b900142c77c801
2017-08-25 16:05:55 -07:00
Ed Sanders
439628712b
Remove reference to editfont-default
...
Bug: T170223
Depends-On: I1ace59c980740fc785ccbd500e19cc8b71d46a5b
Change-Id: I1e0dcab462aaa8c924b49d42f8679359a449a62e
2017-08-25 18:46:01 +01:00
Ed Sanders
41f57b2184
Don't assume action=edit/submit is the old wikitext editor
...
VE will hijack action=edit, and not render the textarea.
Instead check for the textarea directly.
Change-Id: I024d130cd64dd755321f044c372bdcc8b7cdb5f2
2017-08-25 15:14:37 +01:00
Fomafix
ae8696fea6
Do not redefine the browser history navigation keys Alt-Left and Alt-Right
...
Bug: T174055
Change-Id: I1e2acb927dfcc0799b78b2dc045c0208246ba111
2017-08-24 20:00:01 +02:00
Brad Jorsch
a676e88ced
Remove execute mode from non-executable
...
Change-Id: I9b75cd46e6179bd9166c5f3f8ccb09b61313e663
2017-08-24 11:56:59 -04:00
niharika29
c6ab876fe7
Update the CodeMirror icon in NWE to the highlight icon, like in the other editors
...
Change-Id: I92c61c0bb21fc80ee6ab3ffd521d59764e757f7c
2017-08-23 17:22:23 +00:00
jenkins-bot
60f6efeb47
Merge "Don't use tab indenting between array items"
2017-08-21 21:14:14 +00:00
Reedy
5cd288b203
Don't use tab indenting between array items
...
Change-Id: Ifbc293c5075c6518edbefd5d7c4b6ce2cd71ace3
2017-08-21 19:53:52 +01:00
Ed Sanders
29680aceb7
Add padding support for other skins
...
Change-Id: Ia7494545f2dda36bc2798c23ff8a2855212b77aa
2017-08-13 12:38:40 -04:00
Ed Sanders
11f592ba54
Add RTL support in VE source editor mode
...
Bug: T170001
Change-Id: I7223a57969a2299a86d73cfd57336e8d56086520
2017-08-13 11:10:54 -04:00
jenkins-bot
d4d8d53661
Merge "Remove a workaround to clear broken 'background-image'"
2017-08-04 19:39:25 +00:00
jenkins-bot
796c3571bb
Merge "Increase z-index of WikiEditor toolbar to above CodeMirror scrollbar"
2017-08-04 13:15:53 +00:00
Bartosz Dziewoński
3a1589d527
Remove a workaround to clear broken 'background-image'
...
No longer needed after Ib658651e04090ec4f5bc1f5bacbbfb0d7e7f893e
in WikiEditor.
Bug: T172500
Change-Id: I22e5a854ed6ee657d5f6c416cb4412184d10f1ac
2017-08-04 14:38:09 +02:00
Max Semenik
a749945897
ext.CodeMirror.loader is unused, remove
...
Change-Id: I2b51fb2e4e20fef088503567ba0cf818a1d2c857
2017-08-03 17:54:28 -07:00
Kaldari
28a9dd7fac
Only show popup if CodeMirror button exists
...
Bug: T170609
Change-Id: Ibe9aa1b7ffce2e7813aa9aa2ab45f349d8ad2082
2017-08-03 15:57:49 -07:00
Kaldari
34a8d7fbcb
Updating beta feature graphics for new icon
...
Also slightly lightening default toolbar icons to match other
monochrome icons in that editor.
Change-Id: Idada1c3b99246a2374ec2b689cb91ed584d9293e
2017-08-02 11:38:56 -07:00
Sam Wilson
79bc712255
Switch icons to 'highlighter' symbol
...
This adds the new 'highlighter' symbol to the five CodeMirror SVG
icons, and regenerates their PNG counterparts (using Inkscape).
The only changes to the SVG files apart from the paths (and their
positions) are whitespace formatting. I'm not sure all those
gradients need to be there, but I guess someone did that for a
reason. :-)
Bug: T164441
Change-Id: Ibdb8ecf53eb03fb1d1805e788a3e497e4941263a
2017-08-02 11:20:44 +08:00
jenkins-bot
bff703563d
Merge "Preserve scroll position when switching"
2017-07-24 16:35:28 +00:00
Ed Sanders
7fe9e2e762
Popup: Use built-in features of PopupWidget instead of custom CSS
...
* Use OOUI buttons for the actions.
* Make the widget wider to accommodate longer titles in
different languages.
* Don't show if CM already enabled
Change-Id: Ibde461a99929565c15b5e7c5ef3ad88e163fba05
2017-07-20 21:30:45 +00:00
Ed Sanders
60ab939b26
Popup: Build as DOM instead of HTML strings
...
Change-Id: Ib33b6b2a1f3e0f9c50398287822ae88305855a58
2017-07-20 21:30:37 +00:00
Ed Sanders
cec399b4e3
VE: Disable mw-editfont when using CodeMirror
...
Due to using bold as a highlight style, the VE overlay technique
will only work with monospaced fonts.
Change-Id: I33e3e07cf0f3d8e25dd35623286eedf28ba20ae1
2017-07-20 21:30:22 +00:00
Ed Sanders
643faba0db
Preserve scroll position when switching
...
This will be slightly off when you have scrolled past
headers which have a different font size, but it's better
than jumping back to the top of the document.
Change-Id: I62a73c30932c3dc1e538484edead9c5d2ed6c72f
2017-07-20 19:12:38 +01:00
Ed Sanders
410e442fd1
build: Update eslint, stylelint
...
Whitespace and regex escaping fixes
Change-Id: Ic706dfd3ed7efb16db104b054091bec0ba0cb5ed
2017-07-20 15:58:31 +00:00
Ed Sanders
16225450c8
VE CodeMirror: Don't handle any specialChars
...
Bug: T170382
Change-Id: Icf39a5efdc5a553cf5885e4de7189a37a9a7424d
2017-07-12 15:23:49 +01:00
Kaldari
71fadf6a95
Changing color of .cm-mw-mnemonic to match color of other HTML code
...
This changes the green for HTML entities to a slightly lighter
shade of green to match the green of HTML tags.
Change-Id: Ice51e96b0f5fac67d88375fe76630098d380afc9
2017-07-11 10:50:20 -07:00
Kaldari
4fc52b7ba3
Make sure enhanced editing toolbar is loaded before adding button
...
Bug: T169943
Change-Id: Id8828b0d49ecec5124430d15445739d73795d164
2017-07-10 14:16:36 -07:00
Ed Sanders
91397eb556
Ensure CM surface can't be edited in VE mode
...
CM surface is just for presentation, it shouldn't
be possible to focus or select anything in the surface,
so in addition to it being beneath the VE surface,
disable it through the CM API and disable pointer-events
with CSS.
Bug: T170170
Change-Id: Ief49c293f514e22bc6db5eebb3a11c1bc695432d
2017-07-10 18:02:22 +00:00
jenkins-bot
f28f5adccc
Merge "Rewrite VE<->CM synchronizer using transaction op walking"
2017-07-08 00:44:20 +00:00
Ed Sanders
6364cb4c04
Rewrite VE<->CM synchronizer using transaction op walking
...
Previous hacky method fell apart with multi-line transactions.
Depends-On: I465a3f6a8afcd6536293999eb40c01daeb9d905b
Depends-On: I800085eb3a5f7332eab356b62a34bfc603a29839
Change-Id: I66946d7e3f425d8dbbdae720756a7978fbe25582
2017-07-07 23:33:10 +00:00
Ed Sanders
40cc5449b3
Update BetaFeatures icon, use new template and cleanup slightly
...
Change-Id: I29b596aef4a203d0b5e5bad5616d3a52284e147b
2017-07-07 16:20:16 -07:00
jenkins-bot
21d4ae4042
Merge "Design fixes for Codemirror"
2017-07-07 18:13:07 +00:00
Niharika29
e8fa11ec94
Design fixes for Codemirror
...
Bug: T165178
Change-Id: If5b7c0807ff6fcdb30e1b8fe935b53ee0ca46a0d
2017-07-06 15:03:09 -07:00
jenkins-bot
bc96cb80db
Merge "Make sure popup appears for both classic and wikitext editors"
2017-07-06 17:38:51 +00:00
Kaldari
712b5466c8
Fixing SVG images for buttons
...
Older versions of MediaWiki apparently require SVGs to begin with
an XML declaration.
Change-Id: I149c3b2d0ecdc4d0cdfc4f793483c5c89f35b8fb
2017-07-06 08:10:10 +00:00
Niharika29
5dd4386821
CodeMirror fixes for beta feature deployment
...
Change-Id: Ib7c7ebaed4f8b1643bc4de506de8f2b443d33fa3
2017-07-06 00:12:06 +00:00
Niharika29
55092521c3
Make sure popup appears for both classic and wikitext editors
...
Bug: T165003
Change-Id: I4b1c9498df7931643ea3c39d6d2afd9384e47de0
2017-07-04 00:15:56 +00:00
Niharika29
a1b41c6099
Fixes for Codemirror popup patch
...
Bug: T165003
Change-Id: I52e3cdb3afde242451e9cab68baecc1ab77868dc
2017-06-30 18:43:50 +00:00
Niharika29
99e31d152f
Show a popup for first time Codemirror users
...
Bug: T165003
Change-Id: I545a57bdb273ab6906711e2d65dc029293ecc02a
2017-06-29 00:20:14 +00:00
niharika29
48358c1f57
Add syntax highlight as a beta feature
...
Bug: T165543
Change-Id: If7eb2dc3f7c00a91e5ca39ae564f63efa07bbead
2017-06-20 05:07:53 +00:00
jenkins-bot
a9cd58f25e
Merge "Replace CodeMirror icons with new icons (#36C)"
2017-05-20 16:13:08 +00:00
Pavel Astakhov
8ff5f6afee
Replace CodeMirror icons with new icons (#36C)
...
Bug: T164441
Change-Id: I2e185dfa468ede51bd1a0e41b3b4dcf43a74313c
2017-05-14 23:44:17 +06:00
Pavel Astakhov
0676a5263e
Increase z-index of WikiEditor toolbar to above CodeMirror scrollbar
...
Otherwise the popup menu at WikiEditor toolbar displayed under
the CodeMirror layer.
Bug: T165012
Change-Id: Ie4e32cccad00f05e09f99af1c7c9d503f4bcaa0f
2017-05-12 15:10:29 +06:00
Pavel Astakhov
0cdf013c73
Take out gray background behind list bullets in syntax highlighting
...
Bug: T165001
Change-Id: Iec64336881ee38938739cab76a3090542b1ff973
2017-05-11 12:10:15 +06:00
Ed Sanders
59aed7d2e2
build: Update eslint to 0.4.0 and make a pass
...
Change-Id: I580e7a2ed7276dc3b9546b497ecf2f8f4efe1aa6
2017-05-08 16:54:10 +01:00
Ed Sanders
de6b08919b
Use consistent label for button across editors
...
Change-Id: I1a299522e95cdb4a6e5bdbdda1c65d4fcec22133
2017-05-08 16:54:10 +01:00
Ed Sanders
7b01a98ad0
VisualEditor source mode support
...
Long-term todo:
* Performance will be poor on large pages due
to using a auto-height textarea which CodeMirror
doesn't optimise.
Change-Id: I16598fcdbeee51e6fae88376ec81f1c8552b383d
2017-05-08 16:54:10 +01:00
Pavel Astakhov
c9b4aa65fd
Refactor the Integration with other extensions (v 4.0.0)
...
This patch makes initialization easier and cheaper.
Since only the PhpTags extension uses the CodeMirrorGetAdditionalResources
hook it was removed. Instead, the CodeMirrorPluginModules and
CodeMirrorTagModes properties are used in extension.json file.
This patch adds ext.CodeMirror.lib.mode.php module for the PhpTags
extension (with dependences). In CodeMirror there are a lot of modes
they will be registered on request (if they will be requered for
extensions).
Examples of integration:
* Cite: I1bf156fa813af4d5f891619f692047bbdb8a1a86
* PhpTags: Ie339f0475e63885e603defaee2cdcccd6a95fafc
Bug: T163238
Change-Id: Idb7a1a5769a1047ef2f7cd25a7152f73a6613225
2017-05-04 21:20:21 +01:00
jenkins-bot
8f8a68f056
Merge "wikiEditorToolbarEnabled: Rewrite if block as statement"
2017-04-27 01:45:49 +00:00
jenkins-bot
0f22c06b9c
Merge "Swap the enable/disable labels"
2017-04-26 17:19:25 +00:00
Pavel Astakhov
3954552b43
Swap the enable/disable labels
...
Bug: T163916
Change-Id: Ie868556fe31ea4aae976e94526cc96bb79803626
2017-04-26 22:48:13 +06:00
Pavel Astakhov
6ce71b3667
Add additional classes cm-mw-ext-{tag name} to extensions tags
...
They can be used to create specific color themes (T163533)
See also bug T161694
Change-Id: I499e1e4b2e1e4fa972e28fc05a65047ecadc204c
2017-04-23 13:51:24 +06:00
jenkins-bot
1c7bac5c17
Merge "Syntax highlighting: Switch extension tags to green"
2017-04-21 18:34:38 +00:00
Ed Sanders
9205f900bd
wikiEditorToolbarEnabled: Rewrite if block as statement
...
Change-Id: I516a8e8f1bf53dc784a2ab3ff49bd20b172dc6e8
2017-04-20 23:31:58 +01:00
Kaldari
14eea32e44
CSS hack for ext.wikiEditor module no longer needed
...
Change I7c7c3ba49 fixed the underlying bug.
Change-Id: Ida8a5dbd4e3602484f723d43bfa562389565e9d4
2017-04-20 13:59:42 -07:00
Pavel Astakhov
e3ca35adf5
Syntax highlighting: Switch extension tags to green
...
Bug: T161694
Change-Id: I1817cd151ac253998f0381126a60960106db3848
2017-04-20 23:45:11 +06:00
Pavel Astakhov
b7bc84d783
Remove some outdated code
...
Since WikiEditor uses wikiEditor-toolbar-doneInitialSections event
we don't need to add it to ResourceLoader dependencies.
Bug: T161475
Change-Id: I7c7c3ba495c0292d2df052145e7930c86fcb48f5
2017-04-18 14:07:51 +06:00
niharika29
2fb08d548f
Swap parser function and assessment template colors
...
Bug: T162206
Change-Id: I2d8705a8ec44c668aebc4728cd84e0953cd497a1
2017-04-17 20:01:33 +00:00
jenkins-bot
36d0cf9fea
Merge "Add some extra spacing around H1s and H2s"
2017-04-06 00:14:16 +00:00
Pavel Astakhov
6be1fbc134
Add some extra spacing around H1s and H2s
...
Bug: T161559
Change-Id: I0d10d39313c11fddefadff7ab13c262bd6606ed0
2017-04-05 11:18:12 +06:00
Pavel Astakhov
cf07be26b3
Take out the blue highlight for cursor location
...
Bug: T162204
Change-Id: I6aca0103a2603bf37ff856a7dd6f2aa4137ee53c
2017-04-05 10:50:42 +06:00
Reedy
c4e0cf86d4
Fix some indenting
...
Change-Id: I6bb9a8875d053ddac564d6d74ad34c8c9b0332ae
2017-04-04 01:15:09 +01:00
Ed Sanders
02c22f53ff
Styling fixes
...
* Move CSS out of mediawiki.css which is for wikitext
highlighting rules.
* Account for wikieditor-ui adding wrappers even when
disabled.
Change-Id: I0fca693a6771ee1d790800c9afd5c7091fda20c1
2017-03-27 14:02:25 +01:00
Pavel Astakhov
29fa173331
Fix CodeMirror state when initializing
...
Before CodeMirror was enabled every time (ignoring user settings)
since switchCodeMirror was called in initialisation and some others bugs...
Change-Id: I418c64000e05dbfac62f5bb2327cfe7ed74efb17
2017-03-27 14:23:21 +06:00
Ed Sanders
3980fa0af0
Cleanup and use SVG icons
...
Change-Id: Idcad8e2554c5e44155c88bd925186095e3aad930
2017-03-27 02:59:13 +00:00
jenkins-bot
47b8f19d8e
Merge "Switching fixes"
2017-03-27 02:54:23 +00:00
jenkins-bot
1512e38c4e
Merge "Only give code mirror focus for specific commands"
2017-03-27 02:54:23 +00:00
jenkins-bot
eaac96c5e1
Merge "Update CodeMirror to 5.25.0"
2017-03-22 21:57:42 +00:00
Ed Sanders
806527d8a1
Switching fixes
...
* Fix state toggle in WikiEditor
* Update options API code
* Fix font-size and line-height so text doesn't move
* Append to WikiEditor after loading so it appends in
correct part of DOM.
* Only add border in classic editor
Change-Id: I5e80298030633d4859d01a92b6c61ef1fa969e96
2017-03-22 11:48:41 +00:00
Ed Sanders
53c64371dd
Only give code mirror focus for specific commands
...
Previously focus was being called even for getContents, causing the
editor to instantly steal focus from the edit summary input (!!).
Change-Id: I5a14850d90a7c5605026e1fac192585ee62b4615
2017-03-22 11:48:41 +00:00
Ed Sanders
66ba217ba2
build: Replace jshint/jscs with eslint, introduce stylelint
...
Change-Id: I9b5afb39f5a0d32e722b2a1f56c219b8c85b451c
2017-03-21 16:45:56 +00:00
Ed Sanders
75ca882e38
Update CodeMirror to 5.25.0
...
Change-Id: I47680ba98e1ab39360608aa7a923e7fee7db615e
2017-03-21 15:05:52 +00:00
Pavel Astakhov
faf7246cd4
Update CodeMirror library to version 5.16.0
...
Change-Id: Iae9df045d0e897e03b3edcb935188731e019811f
2016-07-19 17:05:52 +06:00
Pavel Astakhov
339e677bee
Remove usage of mod function
...
Change-Id: Id84d85318ef498b4aa8fcbe073b8bc8a8c8c7ed7
2016-07-19 16:31:35 +06:00
Paladox
45ebd2d55d
Update Jenkins tests
...
Test jshint and jscs through npm using latest version of jscs and jshint.
Add support for composer.json running phplint and in the future php code
sniffer.
Change-Id: Id8f11f9414fae8313dc18a857a07e11694354dcb
2016-03-03 13:29:48 +00:00
Legoktm
bf5da5eec5
Revert "Compress PNGs with zopflipng"
...
This reverts commit a64a74ce7d
.
Change-Id: Ifc03d61aabc711bde030f3e013669edc8f07a6b2
2016-02-27 23:32:49 +00:00
Ori Livneh
a64a74ce7d
Compress PNGs with zopflipng
...
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.
This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:
git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
parallel zopflipng -m -y {} {} \;
Files which zopflipng was not able to compress more efficiently were left unmodified.
Bug: T127608
Change-Id: I765f876aa2cf863479f93912efe387160b4ef348
2016-02-21 00:59:49 +00:00
Ori Livneh
a97494e94e
Compress PNGs with zopflipng
...
Zopfli is the most efficient DEFLATE compression algorithm, trading run-time
performance for file sizes that are typically 3-8% smaller than those produced
by zlib with the maximum compression setting. Its output is Deflate-compatible,
so no specialized decoder is needed.
This change was created by running zopflipng against all the PNG files in this
repository. The exact invocation was:
git ls-files --exclude-per-directory=.gitignore -- '*.png' \|
parallel zopflipng -m -y --iterations=500 --filters=01234mepb {} {} \;
Files which zopflipng was not able to compress more efficiently were left unmodified.
Bug: T127608
Change-Id: Iec319a37c5884798afa58145a30d496bb1c9d57b
2016-02-20 22:57:24 +00:00