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>

  • 相关阅读:
    linux创建用户与删除用户及问题解决(ubuntu)
    Build tool
    Version Control&Git
    IntelliJ IDEA激活
    KDJ 指标
    MACD 分析理解
    MACD 指标
    BOLL 指标
    IaaS,PaaS,SaaS 的区别
    Kubernetes 第十七章 调度器 污点和容忍 以及高级调度方式
  • 原文地址:https://www.cnblogs.com/gdjlc/p/2086905.html
Copyright © 2011-2022 走看看