mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 21:51:25 +08:00
61ad959212
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.
8 lines
259 B
Handlebars
8 lines
259 B
Handlebars
{{email-styles-editor styles=model fieldName=fieldName save=(action "save")}}
|
|
|
|
<div class="admin-footer">
|
|
<div class="buttons">
|
|
{{d-button action=(action "save") disabled=saveDisabled class="btn-primary" translatedLabel=saveButtonText}}
|
|
</div>
|
|
</div>
|