editor_close.jsp

来自「cms是开源的框架」· JSP 代码 · 共 26 行

JSP
26
字号
<%@ page session="false" import="
	org.opencms.jsp.*, 
	org.opencms.workplace.*,
	org.opencms.workplace.editors.*
"%><%	

	// initialize the workplace class
	CmsEditorFrameset wp = new CmsEditorFrameset(new CmsJspActionElement(pageContext, request, response));
	
	// determine the action parameter
	String action = request.getParameter(CmsDialog.PARAM_ACTION);
	
//////////////////// ACTION: delete the temporary file and unlock the resource
if (CmsEditor.EDITOR_EXIT.equals(action)) {
	wp.actionClear(true);
} else {
//////////////////// ACTION: show nothing (this frame is hidden and only used when the user presses the "Back" button or closes the window)

%><%= wp.htmlStart() %><script type="text/javascript">
<!--
function closePage(tempfile, resource) {
	this.location.href = "editor_close.html?<%= CmsDialog.PARAM_ACTION %>=<%= CmsEditor.EDITOR_EXIT %>&resource=" + resource + "&tempfile=" + tempfile;
}
//-->
</script><body></body><%= wp.htmlEnd() %>
<% } %>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?