百度编辑器函数使用

 ue.ready(function() {

                                                                //设置编辑器的内容
                                                                // ue.setContent('darf');
                                                                //获取html内容,返回: <p>hello</p>
                                                                var html = ue.getContent();
                                                                //获取纯文本内容,返回: hello
                                                                var txt = ue.getContentTxt();
                                                                var rubbsh = UE.getEditor('advanced_editor').execCommand( "getlocaldata" );
                                                                // alert(rubbsh)
                                                                 // $('#advanced_editor').val(rubbsh);
                                                                 ue.setContent(rubbsh);
                                                            });


你可能感兴趣的:(百度编辑器函数使用)