mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
6b0ce86410
Goal: Make skins.minerva.editor not rely on Minerva-specific markup. SkinMinerva.php: * Add `class="mw-editsection"` to section edit links in SkinMinerva. This is the default behavior in SkinTemplate. * Tweak the page "Edit" link generated in PHP to be the same as the link we were generating in JS: add class="edit-page" and change the message for the text. * (Fix an unrelated code comment that was incorrect.) skins.minerva.content.styles/hacks.less: * Remove a hack that was hiding .mw-editsection, since we now use it. skins.minerva.editor/init.js: * Stop using the `data-section` attribute on links to decide which page section to open in the editor. Instead, use the `href` attribute and extract the `section` URL parameter from it. * Stop using the `edit-page` class to find section edit links. Instead, use the `mw-editsection` class. * Remove super weird code that removed the original "Edit" link from the page and generated an identical one to replace it, instead of just adding event handlers to the existing one. * Centralize event handling for all types of edit links. Bug: T198765 Change-Id: I79639c738ff1c3ec4b48ee2e462d23060151a21b |
||
---|---|---|
.. | ||
templates | ||
blockquotes.less | ||
hacks.less | ||
headings.less | ||
images.less | ||
links.less | ||
lists.less | ||
main.less | ||
sectionAnchor.less | ||
styles.less | ||
tables.less | ||
text.less | ||
thumbnails.less |