Patch #40939 » 40939-v2.patch
| app/assets/javascripts/jstoolbar/common_mark.js | ||
|---|---|---|
| 26 | 26 |
} |
| 27 | 27 |
} |
| 28 | 28 | |
| 29 |
// ins |
|
| 30 |
jsToolBar.prototype.elements.ins = {
|
|
| 31 |
type: 'button', |
|
| 32 |
title: 'Underline', |
|
| 33 |
shortcut: 'u', |
|
| 34 |
fn: {
|
|
| 35 |
wiki: function() { this.singleTag('<u>', '</u>') }
|
|
| 36 |
} |
|
| 37 |
} |
|
| 38 | ||
| 29 | 39 |
// del |
| 30 | 40 |
jsToolBar.prototype.elements.del = {
|
| 31 | 41 |
type: 'button', |
| lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb | ||
|---|---|---|
| 111 | 111 |
end |
| 112 | 112 |
} |
| 113 | 113 | |
| 114 |
# Allow `u`` element to enable underline |
|
| 115 |
allowlist[:elements].push('u')
|
|
| 116 | ||
| 114 | 117 |
allowlist |
| 115 | 118 |
end |
| 116 | 119 |
end |