Commit 9c59aea7 authored by agping's avatar agping

1

parent ed9902ba
......@@ -7,15 +7,15 @@
</head>
<body>
<script language="javascript" type="text/javascript"
src="http://pre2.tonglianjituan.com/resource/lib/ueditor/ueditor.config.js"></script>
src="/resource/lib/ueditor/ueditor.config.js"></script>
<script language="javascript" type="text/javascript"
src="http://pre2.tonglianjituan.com/resource/lib/ueditor/ueditor.all.min.js"></script>
111
<script type="text/plain" id="myEditor" style="width:880px;height:240px;">
src="/resource/lib/ueditor/ueditor.all.min.js"></script>
<script type="text/plain" id="myEditor" style="width:760px;height:376px;">
555555
</script>
<script type = "text/javascript" >
var ue = UE.getEditor('myEditor');
var ue = UE.getEditor('myEditor');
</script>
</body>
......
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_baidu_tpl" /}
<input type="hidden" class="page-load" id="opensquareList" />
<style>
.modal-body{
......@@ -454,13 +454,14 @@
<label class="col-sm-2 control-label">内容:</label>
<div class="col-sm-9">
<div>
<!-- 加载编辑器的容器 -->
<script type="text/plain" id="myEditor" style="width:716px;height:300px;">
<iframe id='ifram-kaipan' style="width: 782px;height: 402px;border: 0;"></iframe>
<!--加载编辑器的容器-->
<!-- <script type="text/plain" id="myEditor" style="width:716px;height:300px;">
</script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('myEditor');
</script>
</script>-->
</div>
</div>
......
......@@ -180,7 +180,13 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
_doc.on('click','.edit_modal_btn' ,function(e){//点击编辑
user.announcementdel_id = $ (this).attr ("data-id");
user.is_add = 0;
user.text_details();
// $('.ifram-kaipan').attr('src', '/index/test?shop_id='+business.id);
$('#ifram-kaipan').attr('src', '/index/test');
// $('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/test');
user.text_details();
// var html_ = $("#ifram-kaipan").contents().find("#liu").html();
});
......@@ -203,10 +209,13 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
$('#announcement_title_add').val(data.data.title);
$("#add_city_id").val(data.data.site_id);
$("#add_district_id").val(data.data.district_lable_id);
var ue = UE.getEditor('myEditor');
ue.ready(function() {//编辑器初始化完成再赋值
ue.setContent(data.data.content); //赋值给UEditor
});
// var html_ = document.getElementById("ifram-kaipan").contentWindow.document.getElementById("liu").html();
// var html_ = $("#ifram-kaipan").contents().find("#liu").html();
// var ue = UE.getEditor('myEditor');
// ue.ready(function() {//编辑器初始化完成再赋值
// ue.setContent(data.data.content); //赋值给UEditor
// });
var _data = data['data'];
if(_data['cover_img']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment