编辑器

UEditor

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
	<head>
	    <title>完整demo</title>
	    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<script src="<c:url value='/res/js/html/editor/ueditor.config.js'/>"></script>
		<script src="<c:url value='/res/js/html/editor/ueditor.all.js'/>"></script>
		<script src="<c:url value='/res/js/html/editor/lang/zh-cn/zh-cn.js'/>"></script>
		
	    <style type="text/css">
	        div{
	            width:100%;
	        }
	    </style>
	</head>
	<body>
		<div>
		    <h1>编辑页面</h1>
		    <textarea name="后台取值的key" id="editor"></textarea>  
			<script type="text/javascript"> 
			    var editor = new UE.ui.Editor(); 
			    editor.render("editor");
			</script> 
		</div>
	</body>
</html>


你可能感兴趣的:(编辑器)