jQuery BBCode Editor

姜弘化
2023-12-01
下载地址:http://www.w3theme.com/jquery-bbedit/
Bbcode简单易用,它是BBS、论坛、Blog等网络应用上的一种常用输入语法。jQuery BbCode Editor提供自
定义设置,可以打造出很个性化的bbcode编辑器,它的源代码都可以根据需求灵活修改。

Latest Source Code:
svn checkout http://jquery-bbedit.googlecode.com/svn/trunk/ jquery-bbedit-read-only
How to use:

Add in head:

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.bbedit.min.js"></script>
Full feature editor with custom language:

<script type="text/javascript">
$(document).ready(function() {
$("#text1").bbedit({lang: 'zh-cn'});
});
</script>
Smiley editor:

<script type="text/javascript">
$(document).ready(function() {
$("#text1").bbedit({
enableToolbar: false,
smilies: 'biggrin,cry,dizzy,funk,huffy,lol,loveliness,mad,|,sad,shocked,shy,sleepy,smile,sweat,titter,tongue'
});
});
</script>
Bbcode editor with highlight:

<script type="text/javascript">
$(document).ready(function() {
$("#text1").bbedit({
highlight: true,
enableSmileybar: false,
tags: 'b,i,u,s,url,img,code,quote'
});
});
</script>
Editor with custom skin:

<script type="text/javascript">
$(document).ready(function() {
$("#text1").bbedit({skin: 'blue'});
});
</script>
Add in body:

<form>
<textarea id="text1" cols="50" rows="5"></textarea>
</form>
 类似资料:

相关阅读

相关文章

相关问答