mirror of
https://github.com/BoostIo/Boostnote
synced 2026-01-08 22:49:21 +00:00
Rename 'lineNumber' to 'displayLineNumbers'
This commit is contained in:
@@ -530,7 +530,7 @@ class SnippetNoteDetail extends React.Component {
|
||||
fontSize={editorFontSize}
|
||||
indentType={config.editor.indentType}
|
||||
indentSize={editorIndentSize}
|
||||
lineNumber
|
||||
displayLineNumbers
|
||||
keyMap={config.editor.keyMap}
|
||||
onChange={(e) => this.handleCodeChange(index)(e)}
|
||||
ref={'code-' + index}
|
||||
|
||||
@@ -35,7 +35,7 @@ export const DEFAULT_CONFIG = {
|
||||
fontFamily: win ? 'Segoe UI' : 'Monaco, Consolas',
|
||||
indentType: 'space',
|
||||
indentSize: '2',
|
||||
lineNumber: true,
|
||||
displayLineNumbers: true,
|
||||
switchPreview: 'BLUR' // Available value: RIGHTCLICK, BLUR
|
||||
},
|
||||
preview: {
|
||||
|
||||
@@ -46,7 +46,7 @@ class UiTab extends React.Component {
|
||||
fontFamily: this.refs.editorFontFamily.value,
|
||||
indentType: this.refs.editorIndentType.value,
|
||||
indentSize: this.refs.editorIndentSize.value,
|
||||
lineNumber: this.refs.editorLineNumber.checked,
|
||||
displayLineNumbers: this.refs.editorDisplayLineNumbers.checked,
|
||||
switchPreview: this.refs.editorSwitchPreview.value,
|
||||
keyMap: this.refs.editorKeyMap.value
|
||||
},
|
||||
@@ -226,8 +226,8 @@ class UiTab extends React.Component {
|
||||
<div styleName='group-checkBoxSection'>
|
||||
<label>
|
||||
<input onChange={(e) => this.handleUIChange(e)}
|
||||
checked={this.state.config.editor.lineNumber}
|
||||
ref='editorLineNumber'
|
||||
checked={this.state.config.editor.displayLineNumbers}
|
||||
ref='editorDisplayLineNumbers'
|
||||
type='checkbox'
|
||||
/>
|
||||
Show line numbers in the editor
|
||||
|
||||
Reference in New Issue
Block a user