jquery-wysiwyg在线文本编辑插件使用实例

模板

jquery-wysiwyg在线文本编辑插件使用实例

TOC](jquery-wysiwyg在线文本编辑插件使用实例)

目录

说明

jquery-wysiwyg在线文本编辑插件,文本域编辑文本,
个人已经将其汉化。

例子

代码片.

<!doctype html>
<html>
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title></title>
	<link href="http://cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="js/normalize.css" />
	<link rel="stylesheet" type="text/css" href="js/wysiwyg-editor.css" />
	<link href="js/demo.css" rel="stylesheet" type="text/css" />

</head>
<body>
<h1 align="center">文本编辑</h1>
	<div style="width:860px; margin: 30px auto;">
	<!-- id固定 -->
	  <textarea  id="editor1" name="editor" placeholder="在此处写入文本..."> </textarea>
	</div>

	<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="js/wysiwyg.js"></script>
	<script type="text/javascript" src="js/wysiwyg-editor.js"></script>
	<script type="text/javascript" src="js/demo.js"></script>
	
</body>
</html>

说明:
引入js文件和ccs文件的路径需要根据自己的要求来改。
不需要jquery设置id,id="editor1"是固定的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值