Skip to content

Commit 7018a34

Browse files
Update markdown-editor-custom-format.component.ts
1 parent a97e09c commit 7018a34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/rich-text-editor/markdown-editor-custom-format.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
66
import { RichTextEditorComponent, MarkdownFormatter, ToolbarService } from '@syncfusion/ej2-angular-richtexteditor';
77
import { LinkService, ImageService, MarkdownEditorService } from '@syncfusion/ej2-angular-richtexteditor';
88
import { createElement, KeyboardEventArgs } from '@syncfusion/ej2-base';
9-
import * as Marked from 'marked';
9+
// import * as Marked from 'marked';
1010

1111
@Component({
1212
selector: 'control-content',
@@ -60,7 +60,7 @@ export class MarkdownCustomComponent {
6060
if (this.mdsource.classList.contains('e-active')) {
6161
let id: string = this.rteObj.getID() + 'html-view';
6262
let htmlPreview: Element = this.rteObj.element.querySelector('#' + id);
63-
htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
63+
// htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
6464
}
6565
}
6666
public fullPreview(): void {
@@ -79,8 +79,8 @@ export class MarkdownCustomComponent {
7979
}
8080
this.textArea.style.display = 'none';
8181
htmlPreview.style.display = 'block';
82-
htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
82+
// htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
8383
this.mdsource.parentElement.title = 'Code View';
8484
}
8585
}
86-
}
86+
}

0 commit comments

Comments
 (0)