TerryMooreII / angular-wysiwyg

An AngularJS WYSIWYG directive that multiple instances and two-way data-binding.
MIT License
121 stars 76 forks source link

Some updates #60

Open ReviakinAleksey opened 8 years ago

ReviakinAleksey commented 8 years ago

Hi, after some time of wysiwig directive usage i decided to pupose some minor changes

  1. I implemented automatically applying of following textarea element styles: font-family, font-size and color. This was little bit tricky, because reading styles using window.getComputedStyle does not give me right result before i change target element for getComputedStyle function to angular.element("#" + scope.textareaId)[0]. Demo page updated with usage example.
  2. There was some old core related to 'css-class' in demo, that caused "cannot create warning this element" warning. I removed this code.
  3. Minor update for color menu button UI update, now when you choose color in color picker menu button also changes color.

Hope you find my changes useful. P.S. Sorry for large amount of changes in pull-request, it is caused because I added Array style directive definition fot minification support.