介绍一款基于jquery好用的编辑框htmlbox.full.js

1. 可选择背景颜色,自主选择工具,感觉挺好用的,不过需要注意,添加引用后找不到工具图标的图片,找到脚本修改idir:属性改成自己的图片文件夹存放路径即可。

asp.net mvc3提交内容报错提示含有不合法标记。我们只需在action方法上添加 [ValidateInput(false)]标记,取消验证即可。

$(function () {
            $("#GongGao").css("height", "200px").css("width", "35%").htmlbox({
                toolbars: [
                    [
                    // Bold, Italic, Underline, Strikethrough, Sup, Sub
                    "separator", "bold", "italic", "underline",
                    // Left, Right, Center, Justify
                    "separator", "justify", "left", "center", "right",
                    // Ordered List, Unordered List, Indent, Outdent
                    "separator", "ol", "ul", "hr", "image"
                    // Hyperlink, Remove Hyperlink, Image
                    ],
                    [// Show code
                    // Formats, Font size, Font family, Font color, Font, Background
                    "separator", "fontsize", "fontfamily",
                    "separator", "fontcolor", "highlight",
                    ]
                ],
                skin: "green"
            });

posted @ 2013-08-31 22:11  aiaito  阅读(314)  评论(0编辑  收藏  举报