Dokuwiki中文增强版技术支持中心

http://www.dokuwiki.com.cn--Dokuwiki中文网

站点工具


3.dokuwiki功能测试区:newtest

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
3.dokuwiki功能测试区:newtest [2023/08/04 16:48]
223.104.3.253
3.dokuwiki功能测试区:newtest [2023/08/04 16:57] (当前版本)
223.104.3.253 已恢复为旧版 (2023/08/04 16:44)
行 1: 行 1:
-<h1 style="margin-top:16px;margin-right:0;margin-bottom:16px;margin-left:0;text-align:left;text-indent:​59px;line-height:​150%"><​a name="​_Toc133222645"><​/a><​span style="font-family:​方正仿宋_GBK">​组织机构及职责<​/span></​h1><​p style="text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:150%;font-family:​仿宋">​为保障发生信息系统突发事件及时实施回退处工作组建海关政务办公系统(HB2020)突发事件应急保障回退执行组。</​span></​p><​p style="​text-align:​center;text-indent:37px;line-height:​150%"><​span ​style="​font-size:​19px;line-height:150%;font-family:​仿宋">​&nbsp;</span><​/p><p class="​MsoListParagraph" ​style="​margin-left:28px;line-height:150%;page-break-after:​avoid;display: none"><​a name="​_Toc110349665"><​/a><a name="​_Toc109981651"><​/a><a name="​_Toc118973685"></​a><​a name="​_Toc118988956"><​/a><a name="​_Toc119342703"><​/a><a name="​_Toc119343313"><​/a><a name="​_Toc120003475"><​/a><a name="​_Toc120203339"><​/a><a name="​_Toc120203399"><​/a><a name="​_Toc120206953"><​/a><a name="​_Toc120207056"><​/a><a name="​_Toc120522010"><​/a><a name="​_Toc120615096"><​/a><a name="​_Toc120616961"><​/a><a name="​_Toc120797280"><​/a><a name="​_Toc120797331"><​/a><a name="​_Toc120799932"><​/a><a name="​_Toc120800116"><​/a><a name="​_Toc133222646"><​/a><​strong><​span style="​font-size:​24px;line-height:​150%;font-family:​宋体;color:black;display:​none">​1.</span><​/strong><​strong><​span style="​font-size:​24px;line-height:​150%;font-family:​宋体;color:black;display:​none">​&nbsp;</span><​/strong><​/p><h2 style="​margin-top:​8px;margin-right:​0;margin-bottom:​8px;margin-left:​0;text-align:​left;text-indent:​43px;line-height:​150%"><​a name="​_Toc133222648"><​/a><​span style="​font-family:​宋体">​应急回退执行组<​/span><​/h2><p style="text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​成员:中软现场一线运维团队及二线支持团队、施单位、本次涉及的HB2020相关业务系统团队。</​span></​p><​p style="​text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​职责:</​span></​p><​p style="​text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​1</​span><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​、对政务办公系统(HB2020)突发事件业务影响进行分析和评估;<​/span><​/p><p style="​text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​2</​span><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​、实施政务办公系统(HB2020)突发事件具体应急处置工作;</​span></​p><​p style="​text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​3</​span><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​、搜集分析政务办公系统(HB2020)突发事件应急处置进程中的数据信息和日志;</​span></​p><​p style="​text-indent:​37px;line-height:​150%"><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​4</​span><​span style="​font-size:​19px;line-height:​150%;font-family:​仿宋">​、向领导组、实施单位报告应急处置进展和业务回退情况。<​/span></p><​p><​br/></​p>​+<pre class="brush:html;toolbar:false">&​lt;​!DOCTYPE&​nbsp;&​lt;​abbr&​nbsp;​title=&​quot;​HyperText&​nbsp;​Markup&​nbsp;​Language&​quot;&​gt;​HTML&​lt;/​abbr&​gt;&​nbsp;​PUBLIC&​nbsp;&​quot;-//&​lt;​abbr&​nbsp;​title=&​quot;​World&​nbsp;​Wide&​nbsp;​Web&​nbsp;​Consortium&​quot;&​gt;​W3C&​lt;/​abbr&​gt;//​DTD&​nbsp;&​lt;​abbr&​nbsp;​title=&​quot;​HyperText&​nbsp;​Markup&​nbsp;​Language&​quot;&​gt;​HTML&​lt;/​abbr&​gt;&​nbsp;​4.01&​nbsp;​Transitional//​EN&​quot;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​quot;​http://​www.w3.org/​TR/​html4/​loose.dtd&​quot;&gt; 
 +&​lt;​html&​gt;​ 
 +&​lt;​head&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​title&​gt;​完整demo&​lt;/​title&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​meta&​nbsp;​http-equiv=&​quot;Content-Type&​quot;&​nbsp;​content=&​quot;text/html;charset=utf-8&​quot;/&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​script&​nbsp;​type=&​quot;​text/javascript&​quot;&​nbsp;​charset=&​quot;​utf-8&​quot;&​nbsp;​src=&​quot;​ueditor.config.js&​quot;&​gt;&​lt;​/script&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​script&​nbsp;​type=&quot;text/​javascript&​quot;&​nbsp;​charset=&quot;utf-8&quot;&​nbsp;​src=&​quot;​ueditor.all.min.js&​quot;&​gt;&​nbsp;&​lt;/​script&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​!–建议手动加语言,避免在ie下有因为加载语言失败导致编辑器加载失败–&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​!–这里加载的语言文件会覆盖你在配项目里添加的语言类型比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文–&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​script&​nbsp;​type=&quot;text/​javascript&​quot;&​nbsp;​charset=&​quot;​utf-8&quot;&​nbsp;​src=&​quot;​lang/​zh-cn/​zh-cn.js&​quot;&​gt;&​lt;/​script&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​style&​nbsp;​type=&quot;text/​css&​quot;&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​div{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​width:100%; 
 +&nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​/style&​gt;​ 
 +&lt;/head&​gt;​ 
 +&​lt;​body&​gt;​ 
 +&​lt;​div&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​h1&​gt;​完整demo&​lt;/​h1&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​script&​nbsp;​id=&​quot;​editor&​quot;&​nbsp;​type=&​quot;​text/​plain&​quot;&​nbsp;​style=&​quot;​width:1024px;height:500px;&​quot;&​gt;&​lt;/script&​gt;​ 
 +&lt;/div&​gt;​ 
 +&​lt;​div&​nbsp;​id=&​quot;​btns&​quot;&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​div&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​getAllHtml()&​quot;&​gt;​获得整个html的内容&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​getContent()&​quot;&​gt;​获得内容&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​setContent()&​quot;&​gt;​写入内容&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​setContent(true)&​quot;&​gt;​追加内容&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​getContentTxt()&​quot;&​gt;​获得纯文本&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​getPlainTxt()&​quot;&​gt;​获得带格式的纯文本&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​hasContent()&​quot;&​gt;​判断是否有内容&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​setFocus()&​quot;&​gt;​使编辑器获得焦点&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onmousedown=&​quot;​isFocus(event)&​quot;&​gt;​编辑器是否获得焦点&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onmousedown=&​quot;​setblur(event)&​quot;&​nbsp;&​gt;​编辑器失去焦点&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;/​div&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​div&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​getText()&​quot;&​gt;​获得当前选中的文本&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​insertHtml()&​quot;&​gt;​插入给定的内容&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​id=&​quot;​enable&​quot;&​nbsp;​onclick=&​quot;​setEnabled()&​quot;&​gt;​可以编辑&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​setDisabled()&​quot;&​gt;​不可编辑&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).setHide()&​quot;&​gt;​隐藏编辑器&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).setShow()&​quot;&​gt;​显示编辑器&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&quot;&nbsp;UE.getEditor(&#​39;editor&#​39;).setHeight(300)&​quot;&​gt;​设置高度为300默认关闭了自动长高&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​/div&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​div&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&quot;getLocalData()&​quot;&nbsp;&gt;获取草稿箱内容&​lt;/​button&​gt;​ 
 +&nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​clearLocalData()&​quot;&​nbsp;&​gt;​清空草稿箱&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​/div&​gt;​ 
 +&lt;/div&gt; 
 +&lt;div&gt; 
 +&nbsp;&nbsp;&nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​createEditor()&​quot;&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​创建编辑器&​lt;​/button&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​lt;​button&​nbsp;​onclick=&​quot;​deleteEditor()&​quot;&​gt;​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​删除编辑器&​lt;​/button&​gt;​ 
 +&lt;/div&​gt;​ 
 +&​lt;​script&​nbsp;​type=&quot;text/​javascript&​quot;&gt; 
 +&nbsp;&​nbsp;&​nbsp;&​nbsp;//​例化编辑器 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;//​建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor(&#​39;​editor&#​39;​)就能拿到相关的实例 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​ue&​nbsp;​=&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​isFocus(e){ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(UE.getEditor(&#​39;​editor&#​39;​).isFocus());​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.dom.domUtils.preventDefault(e) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​setblur(e){ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).blur();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.dom.domUtils.preventDefault(e) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​insertHtml()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​value&​nbsp;=&nbsp;prompt(&#​39;​插入html代码&#​39;,&​nbsp;&#​39;&#​39;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).execCommand(&#​39;​insertHtml&#​39;,&​nbsp;​value) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​createEditor()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​enableBtn();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​getAllHtml()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(UE.getEditor(&#​39;​editor&#​39;​).getAllHtml()) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​getContent()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​arr&​nbsp;=&​nbsp;​[];​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​使用editor.getContent()方法可以获得编辑器的内容&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​内容为:&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(UE.getEditor(&#​39;​editor&#​39;​).getContent());​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(arr.join(&​quot;​\n&​quot;​));​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​getPlainTxt()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​arr&​nbsp;=&nbsp;[]; 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​内容为:&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(UE.getEditor(&#​39;​editor&#​39;​).getPlainTxt());​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(arr.join(&#​39;​\n&#​39;​)) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​setContent(isAppendTo)&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​arr&​nbsp;=&nbsp;[]; 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​使用editor.setContent(&#​39;​欢迎使用ueditor&#​39;​)方法可以设置编辑器内容&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).setContent(&#​39;​欢迎使用ueditor&#​39;,&​nbsp;​isAppendTo);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(arr.join(&​quot;​\n&​quot;​));​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​setDisabled()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).setDisabled(&#​39;​fullscreen&#​39;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​disableBtn(&​quot;​enable&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​setEnabled()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).setEnabled();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​enableBtn();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​getText()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​//当你点击按钮时编辑区域已经失去了焦点,如果直接用getText将不会得到内容,所以要在选回来,然后取得内容 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​range&​nbsp;​=&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).selection.getRange();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​range.select();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​txt&​nbsp;=&nbsp;UE.getEditor(&#​39;​editor&#​39;​).selection.getText();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(txt) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​getContentTxt()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​arr&​nbsp;=&nbsp;[]; 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​使用editor.getContentTxt()方法可以获得编辑器纯文本内容&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​编辑器的纯文本内容为:&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(UE.getEditor(&#​39;​editor&#​39;​).getContentTxt());​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(arr.join(&​quot;​\n&​quot;​));​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​hasContent()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​arr&​nbsp;​=&​nbsp;​[];​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​使用editor.hasContents()方法判断编辑器里是否有内容&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(&​quot;​判断结果为:&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​arr.push(UE.getEditor(&#​39;​editor&#​39;​).hasContents());​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(arr.join(&​quot;​\n&​quot;​));​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​setFocus()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).focus();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​deleteEditor()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​disableBtn();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).destroy();​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​disableBtn(str)&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​div&​nbsp;=&nbsp;document.getElementById(&#​39;​btns&#​39;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​btns&​nbsp;=&nbsp;UE.dom.domUtils.getElementsByTagName(div,&​nbsp;&​quot;​button&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​for&​nbsp;​(var&​nbsp;​i&​nbsp;=&​nbsp;​0,&​nbsp;​btn;&​nbsp;​btn&​nbsp;=&nbsp;btns[i++];​)&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​if&​nbsp;​(btn.id&​nbsp;==&nbsp;str)&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.dom.domUtils.removeAttributes(btn,&​nbsp;​[&​quot;​disabled&​quot;​]);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​}&​nbsp;​else&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​btn.setAttribute(&​quot;​disabled&​quot;,&​nbsp;&​quot;​true&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​enableBtn()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​div&​nbsp;​=&​nbsp;​document.getElementById(&#​39;​btns&#​39;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​var&​nbsp;​btns&​nbsp;​=&​nbsp;​UE.dom.domUtils.getElementsByTagName(div,&​nbsp;&​quot;​button&​quot;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​for&​nbsp;​(var&​nbsp;​i&​nbsp;​=&​nbsp;​0,&​nbsp;​btn;&​nbsp;​btn&​nbsp;​=&​nbsp;​btns[i++];​)&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.dom.domUtils.removeAttributes(btn,&​nbsp;​[&​quot;​disabled&​quot;​]);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​getLocalData&​nbsp;​()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(UE.getEditor(&#​39;​editor&#​39;​).execCommand(&​nbsp;&​quot;​getlocaldata&​quot;&​nbsp;​));​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​function&​nbsp;​clearLocalData&​nbsp;​()&​nbsp;​{ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​UE.getEditor(&#​39;​editor&#​39;​).execCommand(&​nbsp;&​quot;​clearlocaldata&​quot;&​nbsp;​);​ 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;&​nbsp;​alert(&​quot;​已清空草稿箱&​quot;​) 
 +&​nbsp;&​nbsp;&​nbsp;&​nbsp;​} 
 +&lt;/script&​gt;​ 
 +&​lt;/​body&​gt;​ 
 +&​lt;/​html&​gt;​</pre><​p><​br/></​p>​
3.dokuwiki功能测试区/newtest.1691138914.txt.gz · 最后更改: 2023/08/04 16:48 由 223.104.3.253