UE.getEditor('editor')

Endv發表於2018-05-05
 <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> 

 

相關文章