mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Add editor config option
Ref T677
This commit is contained in:
parent
740282b7b7
commit
f6a7dfacb9
2 changed files with 5 additions and 1 deletions
|
@ -64,6 +64,7 @@ type (
|
|||
|
||||
// Site appearance
|
||||
Theme string `ini:"theme"`
|
||||
Editor string `ini:"editor"`
|
||||
JSDisabled bool `ini:"disable_js"`
|
||||
WebFonts bool `ini:"webfonts"`
|
||||
Landing string `ini:"landing"`
|
||||
|
|
5
pad.go
5
pad.go
|
@ -53,7 +53,10 @@ func handleViewPad(app *App, w http.ResponseWriter, r *http.Request) error {
|
|||
}
|
||||
}
|
||||
|
||||
padTmpl := "pad"
|
||||
padTmpl := app.cfg.App.Editor
|
||||
if padTmpl == "" {
|
||||
padTmpl = "pad"
|
||||
}
|
||||
|
||||
if action == "" && slug == "" {
|
||||
// Not editing any post; simply render the Pad
|
||||
|
|
Loading…
Reference in a new issue