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
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
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