1
0
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:
Go MAEDA 2024-10-09 14:04:57 +00:00
parent 5d67308977
commit 52d215de43
2 changed files with 13 additions and 0 deletions

View File

@ -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',

View File

@ -111,6 +111,9 @@ module Redmine
end
}
# Allow `u` element to enable underline
allowlist[:elements].push('u')
allowlist
end
end