Patch #40939 » 0002-Add-Underline-button-to-jsToolbar-for-CommonMark-Mar.patch
| app/assets/javascripts/jstoolbar/common_mark.js | ||
|---|---|---|
|
}
|
||
|
}
|
||
|
// 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',
|
||
| lib/redmine/wiki_formatting/common_mark/sanitization_filter.rb | ||
|---|---|---|
|
end
|
||
|
}
|
||
|
# Allow `u`` element to enable underline
|
||
|
allowlist[:elements].push('u')
|
||
|
allowlist
|
||
|
end
|
||
|
end
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »