html中 box的代码例题,从HTMLbox中检索文本

var hb_full;

$(document).ready(function(){

hb_full = $("#htmlbox_full").css("height", "300").css("width", "100%").htmlbox({

toolbars: [

[

// Cut, Copy, Paste

"separator", "cut", "copy", "paste",

// Undo, Redo

"separator", "undo", "redo",

// Bold, Italic, Underline, Strikethrough, Sup, Sub

"separator", "bold", "italic", "underline", "strike", "sup", "sub",

// Left, Right, Center, Justify

"separator", "justify", "left", "center", "right",

// Ordered List, Unordered List, Indent, Outdent

"separator", "ol", "ul", "indent", "outdent",

// Hyperlink, Remove Hyperlink, Image

"separator", "link", "unlink", "image"

],

[

// Show code

"separator", "code",

// Formats, Font size, Font family, Font color, Font, Background

"separator", "formats", "fontsize", "fontfamily",

"separator", "fontcolor", "highlight",

],

[

//Strip tags

"separator", "removeformat", "striptags", "hr", "paragraph",

// Styles, Source code syntax buttons

"separator", "quote", "styles", "syntax"

]

],

about: true, // "false" to hide About button

idir: "./img/HtmlBoxImg/",

icons: "default", //all options: "default", "silk"

skin: "blue" //all options: "silver", "blue", "green", "red"

});

});

function getHtmlFromEditor()

{

var HtmlFromEditor = hb_full.get_html();

alert(HtmlFromEditor);

}

Display HTML

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值