首页 > 其他 > 详细

angular 富文本编辑器

时间:2015-07-09 14:25:15      阅读:438      评论:0      收藏:0      [点我收藏+]

推荐:textAngular (能在bootstrap modal里面使用,其他大多不能用,特别是使用iframe渲染的 只会渲染一次 第2次弹层不会渲染。测试过好几个)

static:

textAngular.css

textAngular-rangy.min.js

textAngular-sanitize.min.js

textAngular.min.js

 

<div text-angular ng-model="formData.richtext"></div>

taOptions-- factory

taOptions.toolbar = [
  [‘h1‘, ‘h2‘, ‘h3‘, ‘h4‘, ‘h5‘, ‘h6‘, ‘p‘/*, ‘pre‘, ‘quote‘*/],
  [‘bold‘, ‘italics‘/*, ‘underline‘, ‘strikeThrough‘, ‘ul‘, ‘ol‘, ‘redo‘, ‘undo‘, ‘clear‘*/],
  [‘justifyLeft‘, ‘justifyCenter‘, ‘justifyRight‘/*, ‘indent‘, ‘outdent‘*/],
  [/*‘html‘, */‘insertImage‘/*,‘insertLink‘, ‘insertVideo‘, ‘wordcount‘, ‘charcount‘*/]
];

 

参考:https://github.com/fraywing/textAngular

angular 富文本编辑器

原文:http://www.cnblogs.com/mying/p/4633017.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!