mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 03:21:24 +01:00
Add underline button to CommonMark Markdown toolbar (#40939).
Contributed by Yasu Saku (user:skys). git-svn-id: https://svn.redmine.org/redmine/trunk@23106 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -26,6 +26,16 @@ jsToolBar.prototype.elements.em = {
|
||||
}
|
||||
}
|
||||
|
||||
// u
|
||||
jsToolBar.prototype.elements.ins = {
|
||||
type: 'button',
|
||||
title: 'Underline',
|
||||
shortcut: 'u',
|
||||
fn: {
|
||||
wiki: function() { this.singleTag('<u>', '</u>') }
|
||||
}
|
||||
}
|
||||
|
||||
// del
|
||||
jsToolBar.prototype.elements.del = {
|
||||
type: 'button',
|
||||
|
||||
@@ -111,6 +111,9 @@ module Redmine
|
||||
end
|
||||
}
|
||||
|
||||
# Allow `u` element to enable underline
|
||||
allowlist[:elements].push('u')
|
||||
|
||||
allowlist
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user