Home > Article > Web Front-end > Introduction to rich text editor
Rich Text Editor, Rich TextEditor, referred to as RTE, provides editing functions similar to Microsoft Word. Commonly used rich text editors
KindEditor http://kindeditor.net/
UEditor http://ueditor.baidu.com/website/
CKEditor http:/ /ckeditor.com/
<link rel="stylesheet" href="../plugins/kindeditor/themes/default/default.css" /> <script charset="utf-8" src="../plugins/kindeditor/kindeditor-min.js"></script> <script charset="utf-8" src="../plugins/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript"> var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name="content"]', { allowFileManager : true }); }); </script>
$scope.entity.goodsDesc.introduction=editor.html();
function(response){ if(response.success){ alert("保存成功"); $scope.entity={}; editor.html('');//清空富文本编辑器 }else{ alert(response.message); } }
<textarea name="content" style="width:800px;height:400px;visibility:hidden;" ></textarea>
The above is the detailed content of Introduction to rich text editor. For more information, please follow other related articles on the PHP Chinese website!