ui-divTextarea.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!-- <div>
  2. <textarea class="form-control autosize msd-elastic: \n;" data-ng-model="model[options.key]" ng-change="to['onChange'](model[options.key], options, this, $event ,model);"></textarea>
  3. </div> -->
  4. <div>
  5. <div id="textarea" ng-contenteditable="{{!to.readOnly}}" ng-bind-html="model[options.key]"></div>
  6. </div>
  7. <!-- <div class="col-md-12" style="z-indx:1px;" >
  8. <div ckeditor="options" ng-model="model[options.key]" ready="onReady()"></div>
  9. </div> -->
  10. <style>
  11. #textarea {
  12. height: auto;
  13. min-height: 28px;
  14. width: 100%;
  15. padding: 4px;
  16. color: #666;
  17. background-color: #eee;
  18. border: 1px solid #dedede;
  19. border-radius: 2px;
  20. resize: vertical;
  21. overflow: auto;
  22. transition-duration: 0.1s;
  23. transition: 300ms ease-in-out;
  24. font-size: 14px;
  25. }
  26. #textarea img{
  27. width: 400px;
  28. }
  29. #textarea:focus,
  30. #textarea:hover {
  31. outline: none;
  32. background: #f7f7f8 !important;
  33. border-color: #F8F8F8;
  34. }
  35. /* #textarea:empty:before {
  36. content: attr(placeholder);
  37. color: #bbb;
  38. } */
  39. </style>