Skip to content

Commit 0906c47

Browse files
Fixed RTE sample level issue
1 parent 4919d01 commit 0906c47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/rich-text-editor/markdown-editor.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, ToolbarService, TableService } 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',
@@ -52,7 +52,7 @@ export class MarkdownDefaultComponent {
5252
if (this.mdsource.classList.contains('e-active')) {
5353
let id: string = this.rteObj.getID() + 'html-view';
5454
let htmlPreview: Element = this.rteObj.element.querySelector('#' + id);
55-
htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
55+
// htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
5656
}
5757
}
5858
public fullPreview(): void {
@@ -77,7 +77,7 @@ export class MarkdownDefaultComponent {
7777
}
7878
this.textArea.style.display = 'none';
7979
htmlPreview.style.display = 'block';
80-
htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
80+
// htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
8181
}
8282
}
83-
}
83+
}

0 commit comments

Comments
 (0)