Basic inspectors for editing. Changing from block to inline, or
adding "hidden" or "describe" flags not supported.
The UI layout for two-way and one-way rules could certainly be improved.
Bug: T49411
Change-Id: I5ce29e4bf47abf509afde0a57f64b5d1189f5185
So other extensions can use it, e.g. ContentTranslation.
Eventually we could upstream some of these document
editing APIs.
Change-Id: I1e4925c7302fbe90ab4f9380c5efb83c9c379609
New changes:
8c64fe2b5 VisualDiff: Show minimal moves in diff
85a6489ee Localisation updates from https://translatewiki.net.
c20e589d5 Fire position event when direction is changed
32bc67544 Fix AuthorListPopupTool's surface setting
7ff9a3a4e Correct inheritance for CommentInspector actions
05439f5b7 ui.TableLineContext: fix z-index for menu
Bug: T169389
Bug: T171451
Change-Id: Ib8046bd830572829541946f3539a9fcb447cf76f
This seems to be a new convention and it seems that James has been
doing it by hand. *shakes head*
Change-Id: I519498c9b81d44dc7f8048d128b4fe526cb7b82d
Also:
* Add ve.dm.Change.test.js to MW test suite
* Remove server scripts from ext.visualEditor.rebase, they
only need to be in rebaser.build in core.
* Don't load ext.visualEditor.rebase on every page
Bug: T175828
Change-Id: I0ed0c320373b0d653b0d7a012aa7416e88e43e00
The MW attributes are 'style' and 'class'. The plural
forms are used internally only to avoid JS keywords.
Change-Id: I1b7d14872aab4b6b3882d00165924fd1639e1744
Other page state is read directly, rather than passed in.
If we come up with a use case for passing this in at a later
date we can reconsider the best way to do this.
Change-Id: Iee7e608c969776b89dbb38b3b56a5177e48344af
New changes:
4aadbc518 Remove 'return' mapping as it is aliased to 'enter' below
0942f2071 ve.ce.BranchNode#splice: disconnect nodes fully
Bug: T175548
Change-Id: Ifa0933b9dac377fc8f038f6586e82c2f94473639
Not doing this makes adding a new extension node with the exact same content
as a previously-viewed one have the Done button disabled.
Bug: T172586
Change-Id: I39105144e17135044ef644b5464b0fbfdfc019d5
Resolving attributes means turning 'href' and 'src' URLs from possibly
relative to absolute, so that they don't depend on the base URI of the
document.
This is necessary when rendering for clipboard (and in some other
cases), but at the point when toDomElements() is called, the document
these elements are in does not necessary have a sane base URI set,
giving us hrefs pointing to nonexistent pages.
Don't do it here; it will happen later when we know what the right
document (and right base URI) is, e.g. in ve.ce.Surface#onCopy or
ve.ui.PreviewElement#replaceWithModelDom.
Bug: T169675
Bug: T175157
Change-Id: Ie0a5d6e1c57b8efdbbfba0c24f31ca91d156e200