@@ -6,7 +6,7 @@ import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
6
6
import { RichTextEditorComponent , MarkdownFormatter , ToolbarService } from '@syncfusion/ej2-angular-richtexteditor' ;
7
7
import { LinkService , ImageService , MarkdownEditorService } from '@syncfusion/ej2-angular-richtexteditor' ;
8
8
import { createElement , KeyboardEventArgs } from '@syncfusion/ej2-base' ;
9
- import * as Marked from 'marked' ;
9
+ // import * as Marked from 'marked';
10
10
11
11
@Component ( {
12
12
selector : 'control-content' ,
@@ -60,7 +60,7 @@ export class MarkdownCustomComponent {
60
60
if ( this . mdsource . classList . contains ( 'e-active' ) ) {
61
61
let id : string = this . rteObj . getID ( ) + 'html-view' ;
62
62
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);
64
64
}
65
65
}
66
66
public fullPreview ( ) : void {
@@ -79,8 +79,8 @@ export class MarkdownCustomComponent {
79
79
}
80
80
this . textArea . style . display = 'none' ;
81
81
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);
83
83
this . mdsource . parentElement . title = 'Code View' ;
84
84
}
85
85
}
86
- }
86
+ }
0 commit comments