<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/common.jsp"%>
<title>公告详情</title>
</head>
<body>
<div class="open-content open-pad">
    <form id="dataForm" method="post">
    <ul class="ulFrm">
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;公告标题:</span>
            <input type="text" id="title" name="title" class="text {text:'请填写标题。若无，则填写无'}" size="40" value="${adnotice.title}" />
        </li>
        <li>
            <span class="label labelW80 labelRight"><em>*</em>&nbsp;发布人:</span>
            <input type="text" id="publisher" name="publisher" class="text {text:'请填写发布人。若无，则填写无'}" size="40" value="${adnotice.publisher}" />
        </li>
        <li>
        	<span class="label labelW80 labelRight"><em>*</em>&nbsp;公告内容:&nbsp;</span>
		</li>
		<li>
		  <div id="content" style="height:auto;"></div>
		</li>
    </ul>
    </form>
</div>
<div class="open-fixed-buttons">
    <a href="javascript:save();" class="btn-radius">提交</a>
    <a href="javascript:top.$.closeWindow();" class="btn-radius cancel">取消</a>
</div>
<script type="text/javascript" src="${staticPath}wangeditor/wangEditor.min.js"></script>
<script type="text/javascript" src="${staticPath}js/advertise/notice.js"></script>
<script type="text/javascript">
	var E = window.wangEditor
    var editor = new E('#content');
	editor.customConfig.menus = [
	                             'head',  // 标题
	                             'bold',  // 粗体
	                             'fontSize',  // 字号
	                             'fontName',  // 字体
	                             'italic',  // 斜体
	                             'underline',  // 下划线
	                             'strikeThrough',  // 删除线
	                             'foreColor',  // 文字颜色
	                             'backColor',  // 背景颜色
	                             'link',  // 插入链接
	                             'quote',  // 引用
	                             'emoticon',  // 表情
	                             'image',  // 插入图片
	                             'undo',  // 撤销
	                             'redo'  // 重复
	                         ];
	editor.customConfig.uploadImgServer = 'upload_notice_img.do';
	editor.customConfig.uploadFileName = 'file';
	editor.customConfig.showLinkImg = false;
    // 或者 var editor = new E( document.getElementById('editor') )
    editor.create();
	var content = '${adnotice.content}';
	console.log(content);
	editor.txt.html(content);
	$(function(){
        $.resetText();
        $.radio();
        $(".text").input();
    });
</script>
</body>
</html>