mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Add storageKey to MarkdownEditor
This commit is contained in:
@@ -146,6 +146,7 @@ class NoteDetail extends React.Component {
|
|||||||
config={config}
|
config={config}
|
||||||
value={snippet.content}
|
value={snippet.content}
|
||||||
ref={'code-' + index}
|
ref={'code-' + index}
|
||||||
|
storageKey={note.storage}
|
||||||
/>
|
/>
|
||||||
: <CodeEditor styleName='tabView-content'
|
: <CodeEditor styleName='tabView-content'
|
||||||
mode={snippet.mode}
|
mode={snippet.mode}
|
||||||
|
|||||||
@@ -519,6 +519,7 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
onChange={(e) => this.handleCodeChange(index)(e)}
|
onChange={(e) => this.handleCodeChange(index)(e)}
|
||||||
ref={'code-' + index}
|
ref={'code-' + index}
|
||||||
ignorePreviewPointerEvents={this.props.ignorePreviewPointerEvents}
|
ignorePreviewPointerEvents={this.props.ignorePreviewPointerEvents}
|
||||||
|
storageKey={storageKey}
|
||||||
/>
|
/>
|
||||||
: <CodeEditor styleName='tabView-content'
|
: <CodeEditor styleName='tabView-content'
|
||||||
mode={snippet.mode}
|
mode={snippet.mode}
|
||||||
|
|||||||
Reference in New Issue
Block a user