mirror of
https://github.com/discourse/discourse.git
synced 2025-03-02 17:29:25 +00:00
When editing the files for a theme in the admin dashboard, typing "cmd+s" (a common key-binding to save in most text editors) used to engage the browser's default "save page" dialogue. This commit adds a key-binding to the ace editor that saves the file. Now, the "cmd+s" (and "ctrl+s" for windows) key-binding does the same action as the save button.
19 lines
698 B
Handlebars
19 lines
698 B
Handlebars
<div class="row">
|
|
<div class="admin-controls">
|
|
<nav>
|
|
<ul class="nav nav-pills">
|
|
<li>{{#link-to "adminCustomizeEmailStyle.edit" "html" replace=true}}{{i18n "admin.customize.email_style.html"}}{{/link-to}}</li>
|
|
<li>{{#link-to "adminCustomizeEmailStyle.edit" "css" replace=true}}{{i18n "admin.customize.email_style.css"}}{{/link-to}}</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
{{ace-editor content=editorContents mode=currentEditorMode editorId=editorId save=(action "save")}}
|
|
|
|
<div class="admin-footer">
|
|
<div class="buttons">
|
|
{{d-button action=(action "reset") disabled=resetDisabled class="btn-default" label="admin.customize.email_style.reset"}}
|
|
</div>
|
|
</div>
|