В моем случае курсор прыгает через одну пустую строку. Как это исправить? Заранее спасибо.
In Angular 5 + Electron.
HTML:
<codemirror
[config]="{
lineWrapping: true,
autofocus: true,
showCursorWhenSelecting: true,
smartIndent: false
}"
(keyup.enter)="removeIndentation()"
#novelEditor>
</codemirror>
ц
import { CodemirrorComponent } from 'ng2-codemirror';
...
@ViewChild('novelEditor') private novelEditor: CodemirrorComponent;
...
removeIndentation() {
const cm = this.novelEditor.instance;
cm.replaceSelection("\n");
}
