Guest User

Untitled

a guest
Feb 25th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. // .html file
  2. <app-tinymce class="note-input-textarea" [(ngModel)]='noteText'
  3. [ngClass]="{
  4. strikethrough: isDeleted
  5. }"
  6. [disabled]="canUpdateNoteDetail">
  7. </app-tinymce>
  8.  
  9. // .scss file
  10. .strikethrough {
  11. text-decoration: line-through;
  12. }
  13.  
  14. // .ts file
  15. export class UpdateProgressNotePage {
  16. @ViewChild(TinymceComponent) private tinyMce: TinymceComponent;
  17. isDeleted: boolean = true;
  18. constructor(){
  19. this.initialize();
  20. }
  21.  
  22. initialize() {
  23. if(isDeleted) {
  24. this.tinyMce.editor.execCommand('Strikethrough', false);
  25. }
  26. }
  27.  
  28. }
Add Comment
Please, Sign In to add comment