mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 12:00:05 +00:00
(bug 22209, bug 22574) Make indent, bullet list and numbered list buttons in the WikiEditor toolbar act on each line individually
* Reintroduce support for the splitlines argument in encapsulateSelection(). Was implemented by Adam Miller in r61493 but got lost somehow * Add 'splitlines': true for the bullet list and numbered list buttons. The indent button already had it, so that part of r61493 did survive * Copy options.pre and options.post to local pre and post variables instead of using (and modifying!) them directly all over the place
This commit is contained in:
parent
724dccc131
commit
fad3b6568b
|
@ -270,7 +270,8 @@ getDefaultConfig: function() {
|
|||
'pre': "* ",
|
||||
'periMsg': 'wikieditor-toolbar-tool-ulist-example',
|
||||
'post': "",
|
||||
'ownline': true
|
||||
'ownline': true,
|
||||
'splitlines': true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -285,7 +286,8 @@ getDefaultConfig: function() {
|
|||
'pre': "# ",
|
||||
'periMsg': 'wikieditor-toolbar-tool-olist-example',
|
||||
'post': "",
|
||||
'ownline': true
|
||||
'ownline': true,
|
||||
'splitlines': true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue