<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>CK editor</title>
<script src="js/ckeditor.js"></script>
</head>
<body>
<textarea name="editor1" id="editor1" rows="10" cols="80">This is my textarea to be replaced with CKEditor.</textarea>
<script>
CKEDITOR.replace("editor1");
</script>
</body>
</html>
转载于:https://blog.51cto.com/antlove/1930802