Ed Sanders
4f2ace3ad9
Unbreak VE integration in IE11
...
Element.remove is not supported in IE11 so use
parentNode.removeChild.
Change-Id: Iacfdc2fb563d5ed168dc691ecf439e60e94d4e2a
2018-03-27 21:46:00 +01:00
Ed Sanders
1dc74c66fe
Avoid using bold with VE+CodeMirror
...
We can't guarantee the preserve glyph width, e.g.
on Firefox with Chinese characters.
Bug: T184467
Change-Id: I6fc92fcd034bda3d9a94749935aae03c8373f7c5
2018-03-07 19:56:51 +00:00
Ed Sanders
06af670325
VE: Use different approach for transparent text issue
...
Deferring the insertions can lead to sync issues, so use
a different technique to selective refresh the CodeMirror
view when the height changes.
This reverts commit 8e3d96f75f
.
Bug: T188473
Bug: T185184
Change-Id: I502501cc0325db64f29a67716306733859d102a9
2018-02-28 12:38:44 +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
e795883f0d
NWE: Fix padding in Vector
...
Bug: T185299
Change-Id: Iea8e61654608259ddc90286aef59014a37e4f44d
2018-01-19 10:13:53 +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
9960ed601f
Remove font-size now it is set by editfont
...
Bug: T180678
Change-Id: Ic9e8bdb3b34dbb2f2c5748d6bb57e9da90112118
2017-12-21 12:21:57 +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
ca3ff81fc1
Merge "Remove reference to editfont-default"
2017-10-03 18:48:23 +00: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
Ed Sanders
439628712b
Remove reference to editfont-default
...
Bug: T170223
Depends-On: I1ace59c980740fc785ccbd500e19cc8b71d46a5b
Change-Id: I1e0dcab462aaa8c924b49d42f8679359a449a62e
2017-08-25 18:46:01 +01: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
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
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
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
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
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
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