mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
UX: remove 🔥heading and ruler button from composer toolbar
This commit is contained in:
parent
4205c1ad2b
commit
62156885ec
3 changed files with 0 additions and 82 deletions
|
@ -101,24 +101,6 @@ class Toolbar {
|
|||
perform: e => e.applyList(i => !i ? "1. " : `${parseInt(i) + 1}. `, 'list_item')
|
||||
});
|
||||
|
||||
this.addButton({
|
||||
id: 'heading',
|
||||
group: 'extras',
|
||||
icon: 'header',
|
||||
label: getButtonLabel('composer.heading_label', 'H'),
|
||||
shortcut: 'Alt+1',
|
||||
perform: e => e.applyList('## ', 'heading_text')
|
||||
});
|
||||
|
||||
this.addButton({
|
||||
id: 'rule',
|
||||
group: 'extras',
|
||||
icon: 'minus',
|
||||
shortcut: 'Alt+R',
|
||||
title: 'composer.hr_title',
|
||||
perform: e => e.addText("\n\n----------\n")
|
||||
});
|
||||
|
||||
if (site.mobileView) {
|
||||
this.groups.push({group: 'mobileExtras', buttons: []});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue