mirror of https://github.com/artf/grapesjs.git
2 changed files with 7 additions and 7 deletions
@ -1,7 +0,0 @@ |
|||
import ComponentView from './ComponentTextNodeView'; |
|||
|
|||
export default class ComponentCommentView extends ComponentView { |
|||
_createElement() { |
|||
return document.createComment(this.model.get('content')); |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
import ComponentTextNodeView from './ComponentTextNodeView'; |
|||
|
|||
export default class ComponentCommentView extends ComponentTextNodeView { |
|||
_createElement() { |
|||
return document.createComment(this.model.get('content')!) as Text; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue