Kindeditor---更改换行模式

<script charset="utf-8" src="/editor/kindeditor.js"></script>

    <script charset="utf-8" src="/editor/lang/zh_CN.js"></script>

    <script>
        //简约风格
        var editor;
        KindEditor.ready(function(K) {
            editor = K.create('#<%=myCont.ClientID %>', {
                uploadJson: 'editor/asp.net/upload_json.ashx',
                fileManagerJson: 'editor/asp.net/file_manager_json.ashx',
                allowFileManager: true,
                
                resizeType: 0,
                allowPreviewEmoticons: false,
                allowImageUpload: true,
                newlineTag:'br',//'br' 或'p'
                items: [
                        'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                        'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                        'insertunorderedlist', '|', 'emoticons', 'image', 'link']
            });
        });
    </script>

 

posted @ 2015-03-25 09:37  框框A  阅读(1083)  评论(0编辑  收藏  举报