import { Component } from '@angular/core'; @Component({ template: `

Tiny Mce Two way Binding

{{dataModel}} ` }) export class TinymceComponent { dataModel:string = `

sdsdsd

 

sadas
     
     
     
asdas asdasasd    
asd   asdasd   asdas
asdasd dasd asda    
      sdasd asd

 

  1. 123asdasd
  2. 123
  3. asd123
  4. 123
  5. 123
` init:any = { selector: 'textarea', height: 500, theme: 'modern', plugins: 'print preview fullpage powerpaste searchreplace autolink directionality advcode visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount tinymcespellchecker a11ychecker imagetools mediaembed linkchecker contextmenu colorpicker textpattern help', toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat', image_advtab: true, templates: [ { title: 'Test template 1', content: 'Test 1' }, { title: 'Test template 2', content: 'Test 2' } ], content_css: [ '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i', '//www.tinymce.com/css/codepen.min.css' ] } }