---
title: "JMEditor安装使用教程（V0.9.2）"
author: "jmeditor"
date: "2013-02-17T20:34:15Z"
tags: ["CKEditor", "JavaScript"]
categories: ["Web前端"]
slug: "jmeditor-v0-9-2"
draft: false
lastmod: "2013-02-17T20:34:15Z"
id: 1806517
url: "https://jmeditor.iteye.com/blog/1806517"
---

（原文[http://www.jmeditor.com/bbs/read.php?tid=11&fid=3](http://www.jmeditor.com/bbs/read.php?tid=11&fid=3)）

 

一、下载最新的JMEditor（[http://www.jmeditor.com](http://www.jmeditor.com/)）。  
   
二、目录结构  
　　解压下载的文件，得到以下目录  
　　JMEditor-x  
　　├ jmeditor  
　　│├ ckeditor  
　　││└。。。  
　　│└ mathquill-x  
　　│　└。。。  
　　├ style  
　　│└ default.css  
　　├ index.html  
　　└view.html  
　　其中，jmeditor目录为编辑器的主目录；index.html、view.html和style目录是Demo相关的文件。  
　　没有特殊说明时，版本更新时，只需要覆盖jmeditor目录即可。  
   
三、使用步骤  
　　1.       指定HTML文档的渲染模式，在head中间加入以下指令：  
　　&lt;meta http-equiv="X-UA-Compatible" content="chrome=1" /&gt;  
　　2.       引入jquery和编辑器js，在head中间加入以下引用：  
　　&lt;script type="text/javascript" src="jmeditor/jquery-1.8.3.min.js"&gt;&lt;/script&gt;  
　　&lt;script type="text/javascript" src="jmeditor/JMEditor.js"&gt;&lt;/script&gt;  
　　3.       定义编辑区域，如下  
　　&lt;div contenteditable="true"&gt;&lt;/div&gt;  
　　至此，就完成了JMEditor的安装。  
　　4.       为了让编辑区看上去更美观，添加样式class=”editDemo”。为了容易取到编辑的内容添加id="content"。如下所示：  
　　&lt;div id="content" contenteditable="true" class="editDemo"&gt;&lt;/div&gt;  
   
如果您还有其他问题，请到[论坛](http://www.jmeditor.com/bbs/)留言。