Patch #40939 » 0002-Add-Underline-button-to-jsToolbar-for-CommonMark-Mar.patch
app/assets/javascripts/jstoolbar/common_mark.js | ||
---|---|---|
26 | 26 |
} |
27 | 27 |
} |
28 | 28 | |
29 |
// u |
|
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 |
- « Previous
- 1
- 2
- 3
- 4
- Next »