(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:
Roan Kattouw 2011-04-21 13:42:39 +00:00
parent 724dccc131
commit fad3b6568b

View file

@ -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
}
}
},