Skip to content

Commit fce3e0b

Browse files
authored
Merge pull request #126 from netgrif/NAE-1736
[NAE-1736] Rich textarea fix cursor
2 parents f278d44 + fda12da commit fce3e0b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

projects/netgrif-components/src/lib/data-fields/text-field/rich-textarea-field/easymde-wrapper/easymde-wrapper.component.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class EasymdeWrapperComponent implements OnDestroy, AfterViewInit, Contro
3131
this.options = {
3232
autoDownloadFontAwesome: true,
3333
minHeight: '95px',
34+
spellChecker: false,
3435
toolbar: ['bold', 'italic', 'heading', 'strikethrough', '|', 'code', 'quote', 'unordered-list', 'ordered-list', '|',
3536
'link', 'image', 'table', '|', 'horizontal-rule', 'preview', '|', 'guide'],
3637
shortcuts: {
@@ -60,14 +61,6 @@ export class EasymdeWrapperComponent implements OnDestroy, AfterViewInit, Contro
6061
this._easyMDE = new EasyMDE(this.options);
6162
this._easyMDE.value(this.textAreaField.value);
6263
this._easyMDE.codemirror.on('change', this._onChange);
63-
this.formControlRef.valueChanges.subscribe(value => {
64-
if (this._easyMDE) {
65-
if (!this._fromEditor) {
66-
this._easyMDE.value(value);
67-
}
68-
this._fromEditor = false;
69-
}
70-
});
7164
}
7265

7366
private _onChange = (): void => {

0 commit comments

Comments
 (0)