aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mdn/editor/basics/page_controls/index.html
blob: 48175fd7c8989b4a1de9b7314229e997b474fe74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
title: MDN 编辑器页面控件
slug: MDN/Editor/Basics/Page_controls
tags:
  - 指南
  - 编辑器
translation_of: MDN/Editor/Basics/Page_controls
---
<div>{{MDNSidebar}}</div>

<p>页面控件由对整个页面起作用的按钮组成,为了减少多余的滚动,页面控件在编辑器的顶部和底部都可见。一共有四个页面控制按钮:</p>

<div class="note">
<p>如果你编写的页面符合 MDN 的要求,而编辑器却不能保存成功,你可以<a href="mailto:mdn-spam-watch@mozilla.com?subject=MDN%3A%20Content%20Rejection%20Appeal&amp;body=%3CDescribe%20the%20content%20you%20were%20trying%20to%20save%20and%20where%20you%20were%20trying%20to%20place%20it.%3E">电子邮件联系开发团队</a>寻求帮助。</p>
</div>

<dl>
 <dt>发布并继续编辑</dt>
 <dd>点击这个按钮,会在不关闭编辑器的前提下保存并发布页面。这样你就可以定期保存编辑工作,在页面修订历史中创建存档,这些存档说不定以后会用到。在创建新页面时这个按钮是不可用。查看<a href="https://developer.mozilla.org/zh-CN/docs/MDN/Contribute/Editor/Basics#修订注释">修订注释框</a>以了解如何在保存文章时添加修订注释。</dd>
 <dt>发布</dt>
 <dd>点击该按钮,将保存并发布你的文章,同时关闭编辑器,浏览器跳转到标准模式下的页面。查看<a href="https://developer.mozilla.org/zh-CN/docs/MDN/Contribute/Editor/Basics#修订注释">修订注释框</a>以了解如何在保存文章时添加修订注释。</dd>
 <dt>预览</dt>
 <dd>点击这个按钮将打开新的页面或窗口,以发布的样式展示编辑器中的内容,其中的<a href="https://developer.mozilla.org/en-US/docs/MDN/Contribute/Content/Macros">宏指令</a><a href="https://developer.mozilla.org/en-US/docs/MDN/Kuma/Introduction_to_KumaScript#Template_Syntax">模板</a>都如实展示。值得注意的是,此时你的文章并没有被保存。这个按钮的作用,就是在文章发布前检查实际页面效果的,如果出现脚本错误,请参阅<a href="/en-US/docs/MDN/Contribute/Troubleshooting#Scripting_error_while_previewing_a_page">预览页面时排除脚本错误</a></dd>
 <dd>
 <div class="warning" style="font-size: 14px;">
 <p><strong>警告:</strong> Currently some macros and templates don't execute properly in Preview-mode, leaving the Preview page missing some of its content (such as sidebars), and thus with somewhat distorted page layout; i.e. not totally <abbr title="What You See Is What You Get">WYSIWYG</abbr>. Further, if <a href="https://developer.mozilla.org/en-US/docs/MDN/Contribute/Editor/Basics#scayt"><abbr title="Spell-Check As You Type">SCAYT</abbr> is enabled</a> (and possibly if the page contains certain valid macros or templates), Preview mode may still give a scripting error.</p>
 </div>
 </dd>
 <dt><br>
 <a id="DiscardChanges" name="DiscardChanges">放弃</a></dt>
 <dd>这个按钮的功能就是取消编辑,放弃所有未曾保存的更改。页面将会跳转回上个页面。</dd>
 <dd>
 <div class="warning" style="font-size: 14px;">
 <p><strong>警告:</strong> Occasionally <strong>Discard</strong> can malfunction and start acting more like a partial "discard," undoing many of your changes without exiting the editor. If this happens to you, you should save, exit, and re-enter the editor.</p>
 </div>
 </dd>
</dl>