Skip to content

Commit 495b65e

Browse files
committed
Add defaultUseHardbreak as constants
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent 56cc64e commit 495b65e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

lib/config/default.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,6 @@ module.exports = {
162162
allowEmailRegister: true,
163163
allowGravatar: true,
164164
allowPDFExport: true,
165-
openID: false
165+
openID: false,
166+
defaultUseHardbreak: true
166167
}

lib/web/statusRouter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ statusRouter.get('/config', function (req, res) {
9999
version: config.fullversion,
100100
plantumlServer: config.plantuml.server,
101101
DROPBOX_APP_KEY: config.dropbox.appKey,
102-
allowedUploadMimeTypes: config.allowedUploadMimeTypes
102+
allowedUploadMimeTypes: config.allowedUploadMimeTypes,
103+
defaultUseHardbreak: config.defaultUseHardbreak
103104
}
104105
res.set({
105106
'Cache-Control': 'private', // only cache by client

public/js/lib/common/constant.ejs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ window.plantumlServer = '<%- plantumlServer %>'
66

77
window.allowedUploadMimeTypes = <%- JSON.stringify(allowedUploadMimeTypes) %>
88

9+
window.defaultUseHardbreak = <%- defaultUseHardbreak %>
10+
911
window.DROPBOX_APP_KEY = '<%- DROPBOX_APP_KEY %>'

0 commit comments

Comments
 (0)