mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00: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:
parent
5d67308977
commit
52d215de43
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user