Skip to content

Commit a97e09c

Browse files
Update markdown-editor-preview.component.ts
fixed sample level issue
1 parent 0906c47 commit a97e09c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/rich-text-editor/markdown-editor-preview.component.ts

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

1111
@Component({
1212
selector: 'control-content',
@@ -80,7 +80,7 @@ export class MarkdownPreviewComponent {
8080
if (this.mdSplit.classList.contains('e-active')) {
8181
let id: string = this.rteObj.getID() + 'html-preview';
8282
let htmlPreview: HTMLElement = this.rteObj.element.querySelector('#' + id) as HTMLElement;
83-
htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
83+
// htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
8484
}
8585
}
8686
public fullPreview(e: { [key: string]: string | boolean }): void {
@@ -108,7 +108,7 @@ export class MarkdownPreviewComponent {
108108
this.textArea.style.width = '50%';
109109
}
110110
this.htmlPreview.style.display = 'block';
111-
this.htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
111+
// this.htmlPreview.innerHTML = Marked((this.rteObj.contentModule.getEditPanel() as HTMLTextAreaElement).value);
112112
}
113113
}
114114
public handleFullScreen(e: any): void {
@@ -123,4 +123,4 @@ export class MarkdownPreviewComponent {
123123
}
124124
}
125125
}
126-
}
126+
}

0 commit comments

Comments
 (0)