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 895e0261ed Fix italics/bold WYSIWYG bug with nothing highlighted.
This bug was reported here: https://meta.discourse.org/t/ctrl-b-selects-asterisks/27215 - It was something I broke whilst writing PR3288.

The fix checks if it is a multiline selection, if it is not (which includes blank selections) it will leave the asterisks unhighlighted.

Also fix a bug where asterisks would not be stripped if there was whitespace at the beginning of a line in a multiline selection.

Also fix styling issues I missed last time so that it matches the rest of the document. Specifically, 4 character tabs and spaces after "if"s.
2015-04-07 17:51:39 +01:00
..
adapters FIX: Double slash with finder for admin routes 2015-03-27 12:02:23 -04:00
components FIX: Bugs with autocomplete 2015-04-06 14:04:42 -04:00
controllers make jshint happy 2015-04-07 12:25:28 +02:00
dialects FIX: hoisting issue with regexp replacement patterns 2015-03-23 16:33:41 +01:00
ember Wire up admin view properly 2015-02-20 12:18:42 -05:00
helpers FIX: translation issues with top periods 2015-04-06 13:24:46 +02:00
initializers extends share links 2015-03-16 16:44:50 +08:00
lib Fix italics/bold WYSIWYG bug with nothing highlighted. 2015-04-07 17:51:39 +01:00
mixins FIX: category class on body was busted (:fired:) 2015-03-27 23:07:05 +01:00
models UX: add reply-to glyph in composer 2015-04-04 13:02:55 +05:30
routes FEATURE: add notice when successfully changing avatar 2015-04-06 18:14:13 +02:00
templates FIX: hide custom avatar when image upload is disabled 2015-04-07 11:54:35 +02:00
views FIX: Unbind header keydown event 2015-04-06 14:25:41 -04:00