当前位置: 首页 > 工具软件 > Yi Editor > 使用案例 >

UE.getEditor('editor')

贺华容
2023-12-01
<script type="text/javascript">
    $().ready(function(){   
    var editor = document.getElementById("editor3");
    //var ue = UE.getEditor('editor');  
    if(editor) {
        //var ue = UE.getEditor('editor');
    //    checkdata(); 
    }  
 //var ue = UE.getEditor('editor'); 
    function checkdata(){
        /*
        $.post("../../lib/ueditor/index.html",{
                Page_id : <?php echo $id ?>,
            }, function(data){
                $("#editor").html(data); 
                } );
        }
        
        // alert("editor存在");*/
            $.get("../../lib/ueditor/index.html",function(result){ 
                            if(result != null || result != ""){
                                
                            $('#editor3').html(result)}
                            }
                         );
         /*
         $.get('page/tree/imagedelete.php',{id:x},function(result){ 
            $('#editor3').html(result); 
             document.getElementById('editor3').style.display='';
         });                 
         */                 
                         
    }
 });
    
</script>

 

 类似资料: