mirror of
https://github.com/apache/nifi.git
synced 2025-03-03 16:09:19 +00:00
[NIFI-13780] fix jolt example input codemirror cursor issue (#9389)
This closes #9389
This commit is contained in:
parent
66d378c58b
commit
83a131f953
@ -74,6 +74,18 @@ export class JoltTransformJsonUi implements OnDestroy {
|
||||
private revision$ = this.store.selectSignal(selectRevisionFromRoute);
|
||||
private clientId$ = this.store.selectSignal(selectClientIdFromRoute);
|
||||
private disconnectedNodeAcknowledged$ = this.store.selectSignal(selectDisconnectedNodeAcknowledgedFromRoute);
|
||||
private exampleDataOptions = {
|
||||
theme: 'nifi',
|
||||
lineNumbers: true,
|
||||
gutters: ['CodeMirror-lint-markers'],
|
||||
mode: 'application/json',
|
||||
lint: false,
|
||||
extraKeys: {
|
||||
'Shift-Ctrl-F': () => {
|
||||
this.formatInput();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
protected readonly TextTip = TextTip;
|
||||
|
||||
@ -180,18 +192,7 @@ export class JoltTransformJsonUi implements OnDestroy {
|
||||
}
|
||||
|
||||
getExampleDataOptions(): any {
|
||||
return {
|
||||
theme: 'nifi',
|
||||
lineNumbers: true,
|
||||
gutters: ['CodeMirror-lint-markers'],
|
||||
mode: 'application/json',
|
||||
lint: false,
|
||||
extraKeys: {
|
||||
'Shift-Ctrl-F': () => {
|
||||
this.formatInput();
|
||||
}
|
||||
}
|
||||
};
|
||||
return this.exampleDataOptions;
|
||||
}
|
||||
|
||||
getOutputOptions(): any {
|
||||
@ -372,7 +373,7 @@ export class JoltTransformJsonUi implements OnDestroy {
|
||||
});
|
||||
|
||||
this.editJoltTransformJSONProcessorForm.controls['input'].valueChanges.subscribe(() => {
|
||||
codeEditor.codeMirror.setOption('lint', true);
|
||||
this.exampleDataOptions.lint = true;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user