Home > Web Front-end > HTML Tutorial > Page visual editing ckeditor (web basic study notes 15)_html/css_WEB-ITnose

Page visual editing ckeditor (web basic study notes 15)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:49:58
Original
1241 people have browsed it

1. CKedit download ckedit

Download address: http://ckeditor.com/

2. Introduction of ckedit

2.1. Unzip and copy ckedit to the project

2.2. Introduce

into the page and add

<script type="text/javascript" src="<%=request.getContextPath()%>/ckeditor/ckeditor.js"></script>
Copy after login

2.3. Add class="ckeditor"

to the tags that need to use ckedit. Add class

tr>    <td>内容</td>    <td>    <textarea id="newscontent" name="newscontent" class="ckeditor" rows="8"></textarea>    </td></tr>
Copy after login

2.4. All code on the page

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%><script type="text/javascript" src="<%=request.getContextPath()%>/ckeditor/ckeditor.js"></script>Insert title here
Copy after login

2.5, page effect

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
标题