--- title: MDN 编辑器页面控件 slug: MDN/Editor/Basics/Page_controls tags: - 指南 - 编辑器 translation_of: MDN/Editor/Basics/Page_controls ---
{{MDNSidebar}}

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

如果你编写的页面符合 MDN 的要求,而编辑器却不能保存成功,你可以电子邮件联系开发团队寻求帮助。

发布并继续编辑
点击这个按钮,会在不关闭编辑器的前提下保存并发布页面。这样你就可以定期保存编辑工作,在页面修订历史中创建存档,这些存档说不定以后会用到。在创建新页面时这个按钮是不可用。查看修订注释框以了解如何在保存文章时添加修订注释。
发布
点击该按钮,将保存并发布你的文章,同时关闭编辑器,浏览器跳转到标准模式下的页面。查看修订注释框以了解如何在保存文章时添加修订注释。
预览
点击这个按钮将打开新的页面或窗口,以发布的样式展示编辑器中的内容,其中的宏指令模板都如实展示。值得注意的是,此时你的文章并没有被保存。这个按钮的作用,就是在文章发布前检查实际页面效果的,如果出现脚本错误,请参阅预览页面时排除脚本错误

警告: 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 WYSIWYG. Further, if SCAYT is enabled (and possibly if the page contains certain valid macros or templates), Preview mode may still give a scripting error.


放弃
这个按钮的功能就是取消编辑,放弃所有未曾保存的更改。页面将会跳转回上个页面。

警告: Occasionally Discard 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.