zoukankan      html  css  js  c++  java
  • 小巧文本编辑器Lightweight Rich Text Editor (RTE / WYSIWYG) for jQuery

    来源:http://code.google.com/p/lwrte/

    应用例子:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>A Light weight RTE jQuery Plugin</title>
    <link type="text/css" rel="stylesheet" href="jquery.rte.css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="jquery.rte.js"></script>
    <script type="text/javascript" src="jquery.rte.tb.js"></script>
    <script type="text/javascript" src="jquery.ocupload-1.1.4.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        var arr = $('.rte1').rte({
            css: ['default.css'],
            500,
            height: 300,
            controls_rte: rte_toolbar,
            controls_html: html_toolbar
        });

        $("#save").click(function(){  
        var test=arr['test'].get_content();
                       alert(test);
        })

    });
    </script>
    </head>
    <body>
    <textarea name="test" id="test" class="rte1"></textarea>
    <input id="save" type="button" value="测试" />
    </form>
    </div>
    </body>
    </html>

  • 相关阅读:
    hdu 5366 简单递推
    hdu 5365 判断正方形
    hdu 3635 并查集
    hdu 4497 数论
    hdu5419 Victor and Toys
    hdu5426 Rikka with Game
    poj2074 Line of Sight
    hdu5425 Rikka with Tree II
    hdu5424 Rikka with Graph II
    poj1009 Edge Detection
  • 原文地址:https://www.cnblogs.com/gdjlc/p/2086905.html
Copyright © 2011-2022 走看看