This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Ben Hadley-Evans 229e1850ab Improve the italic and bold buttons on multiline selections.
This misuses the system that Pagedown has set up somewhat, but it has to in order to affect the content inside the selection. The end behaviour seems to me to be non-buggy and much more obvious to an end user.

Essentially, instead of performing the operation to surround characters on one line, it splits the selection into lines the loops the operation. But usually a single "chunk" is returned with some replacement text and markdown to insert before and after the text. Because we're replacing text inside the selections the before and after are left blank and the selection contains all the changed markdown.
2015-03-20 16:53:44 +00:00
..
adapters FEATURE: User Directory, with sorting and time period filter 2015-03-18 15:20:34 -04:00
components FIX: profile picture wasn't properly updating 2015-03-19 19:57:07 +01:00
controllers FIX: used 'pin' terminology instead of 'feature topic' 2015-03-20 11:43:05 +01:00
dialects FIX: remove empty lines but keep whitespace on first line in code blocks 2015-03-17 17:27:16 +01:00
ember Wire up admin view properly 2015-02-20 12:18:42 -05:00
helpers FEATURE: User Directory, with sorting and time period filter 2015-03-18 15:20:34 -04:00
initializers extends share links 2015-03-16 16:44:50 +08:00
lib Improve the italic and bold buttons on multiline selections. 2015-03-20 16:53:44 +00:00
mixins FIX: profile picture wasn't properly updating 2015-03-19 19:57:07 +01:00
models Merge pull request #3284 from techAPJ/patch-1 2015-03-19 19:55:27 +01:00
routes JSHint fix 2015-03-19 18:30:19 -04:00
templates FIX: used 'pin' terminology instead of 'feature topic' 2015-03-20 11:43:05 +01:00
views FIX: profile picture wasn't properly updating 2015-03-19 19:57:07 +01:00