mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 00:56:41 +10:00
Fixed markdown buttons in FF
This commit is contained in:
@@ -49,8 +49,9 @@
|
||||
insertText = "#{startChar}#{tag}#{selected}#{if wrap then tag else ' '}"
|
||||
|
||||
if document.queryCommandSupported('insertText')
|
||||
document.execCommand 'insertText', false, insertText
|
||||
else
|
||||
inserted = document.execCommand 'insertText', false, insertText
|
||||
|
||||
unless inserted
|
||||
try
|
||||
document.execCommand("ms-beginUndoUnit")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user