zoukankan      html  css  js  c++  java
  • ckeditor 基础

    <!DOCTYPE html>
    <!--
    Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
    For licensing, see LICENSE.md or http://ckeditor.com/license
    -->
    <html>
    <head>
        <meta charset="utf-8">
        <title>CKEditor Sample</title>
        <script type="text/javascript" src="http://qiniu.9hlh.com/jscss$jquery.min.js"></script>
        <script src="../ckeditor.js"></script>
        
    </head>
    <body >
    
    
    
        <div id="editor">
            
        </div>
        <div id="editor2">
            
        </div>
                
    
    <button id="one">获取1</button>
    <button id="two">获取1</button>
    
    <script>
        //initSample();
        //CKEDITOR.config.height = 150;
        //CKEDITOR.config.width = 'auto';
        //var editorElement = CKEDITOR.document.getById( 'editor' );
        
    
    
    
        CKEDITOR.replace( 'editor' );
        CKEDITOR.replace( 'editor2' );
    
            $("#one").click(function () {
            
            var stem = CKEDITOR.instances.editor.getData();
            alert(""+stem);
            })
    
            $("#two").click(function () {
            
            var stem = CKEDITOR.instances.editor2.getData();
            alert(""+stem);
            })
    
    
    </script>
    
    </body>
    </html>
  • 相关阅读:
    GO 爬虫图片相关
    GO 爬虫链接
    Redis使用
    HTTP请求
    lris框架基础案例
    UDP通信功能
    C++随机
    matplotlib显示指数部分的负号
    使用opencv-python读取中文路径图片
    pytorch模型可视化,torchviz,tensorboardX,文本方式
  • 原文地址:https://www.cnblogs.com/aliblogs/p/5833896.html
Copyright © 2011-2022 走看看