# 所见即所得

**所见即所得**（WYSIWYG，发音为“wiz-ee-wig”）是“What You See Is What You Get”的缩写，指的是一种编辑界面，其中内容的显示形式与其最终呈现的外观高度一致，而非以标记代码或其他代理形式呈现。<sup>[1](https://www.cyberoptik.net/glossary/wysiwyg-editor/)</sup> 在所见即所得编辑器中，作者通过工具栏按钮为文本加粗、插入表格和图片，并立即看到格式化后的结果；而在基于标记的工作流程中，同一作者需要输入诸如 `<strong>important</strong>` 之类的标签，只有在保存并预览之后才能看到样式化的输出。<sup>[1](https://www.cyberoptik.net/glossary/wysiwyg-editor/)</sup>

| 关键事实 | 详情 |
|---|---|
| 含义 | “What You See Is What You Get”的缩写：编辑视图以最终视觉形式显示内容，而非以代码形式呈现。<sup>[1](https://www.cyberoptik.net/glossary/wysiwyg-editor/)</sup> |
| 首个实现 | Bravo，约1974年运行于施乐Alto计算机上，被广泛认为是第一个所见即所得文本编辑器，能在屏幕上精确显示页面打印时的外观。<sup>[2](https://www.computerhistory.org/revolution/input-output/14/347/1856)</sup> |
| 设计者 | Bravo由巴特勒·兰普森和查尔斯·西蒙尼在施乐帕克研究中心设计；西蒙尼后来在微软领导负责Microsoft Word等产品的应用软件组。<sup>[3](https://xeroxalto.computerhistory.org/xerox_alto_file_system_archive.html)</sup> |
| 相关PARC创新 | Gypsy建立在Bravo的文本编辑例程之上，提供了首个基于选择、复制和粘贴的无模式用户界面。<sup>[3](https://xeroxalto.computerhistory.org/xerox_alto_file_system_archive.html)</sup> |
| Web标准观点 | HTML标准认可两大类创作工具——基于结构的和所见即所得的——并表示所有工具都应尽最大努力生成结构良好、语义丰富、媒体无关的内容。<sup>[4](https://html.spec.whatwg.org/infrastructure.html)</sup> |
| 无障碍标准 | ATAG 2.0是W3C于2015年发布的建议书，适用于所见即所得HTML编辑器及其他创作工具。<sup>[5](https://www.w3.org/WAI/standards-guidelines/atag/)</sup> |
| Web实现 | 基于浏览器的富文本编辑一直依赖 `contenteditable` 和现已弃用的 `document.execCommand()`；W3C的EditContext API是一个较新的API，用于直接参与文本输入。<sup>[6](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand)</sup><sup> • </sup><sup>[7](https://www.w3.org/TR/edit-context/all/)</sup> |

## 施乐帕克研究中心的起源

第一个所见即所得系统是Bravo，在施乐帕克研究中心（Palo Alto Research Center）为Alto计算机开发。[计算机历史博物馆](https://www.edgepedia.org/zh/computer-history-museum)将约1974年的Bravo描述为被广泛认为的第一个所见即所得文本编辑器，能在屏幕上精确显示页面打印时的外观。<sup>[2](https://www.computerhistory.org/revolution/input-output/14/347/1856)</sup> Bravo由[巴特勒·兰普森](https://www.edgepedia.org/zh/butler-lampson)和[查尔斯·西蒙尼](https://www.edgepedia.org/zh/charles-simonyi)设计，由西蒙尼、托马斯·J·马洛伊、卡罗尔·汉金斯、格雷格·库斯尼克、凯特·罗森布鲁姆和鲍勃·舒尔实现。<sup>[3](https://xeroxalto.computerhistory.org/xerox_alto_file_system_archive.html)</sup> 一份施乐技术报告称Bravo为“第一个强大的所见即所得编辑器”，是为Alto开发的实验性编辑器。<sup>[8](https://bitsavers.computerhistory.org/pdf/xerox/sdd/OSD-R8203_Xerox_Office_Systems_Technology_Nov82.pdf)</sup>

Alto的硬件使这一方法成为可能：基于图形的显示器和鼠标，在600×800像素的单色显示器上支持可移动窗口和图标，使用户摆脱了容易出错的文本命令，并轻松地将图像与各种字体和布局组合在一起。<sup>[9](https://www.computerhistory.org/revolution/input-output/14/347)</sup> Bravo的所见即所得打印和Gypsy的“剪切粘贴”编辑成为文字处理的标准方法。<sup>[9](https://www.computerhistory.org/revolution/input-output/14/347)</sup> Gypsy在依赖Bravo的文本编辑例程的同时，引入了首个无模式用户界面——一种围绕选择、复制和粘贴来组织的界面。<sup>[3](https://xeroxalto.computerhistory.org/xerox_alto_file_system_archive.html)</sup>

**进入商业软件的谱系。** 1976年至1978年间，西蒙尼等人重写了Bravo，后来一个将图形用户界面/所见即所得显示与无模式编辑相结合的版本，可以说堪称世界上第一个现代意义上的文字处理软件；其易用性不仅受到PARC工程师的欢迎，也受到他们家人的欢迎——他们前来制作通讯、简历和学校报告。<sup>[10](https://link.springer.com/chapter/10.1007/978-3-031-36033-6_1)</sup> 西蒙尼转到微软，领导负责[Microsoft Word](https://www.edgepedia.org/zh/microsoft-word)等产品的应用软件组；Microsoft Word——计算机历史博物馆的一篇记述称其直接基于Bravo编辑器，后来成为事实上的标准。<sup>[3](https://xeroxalto.computerhistory.org/xerox_alto_file_system_archive.html)</sup><sup> • </sup><sup>[11](https://computerhistory.org/blog/a-backup-of-historical-proportions/)</sup> 另一位Bravo团队成员汤姆·马洛伊去了苹果，编写了LisaWrite。<sup>[12](https://www.researchgate.net/publication/2953879_The_Xerox_Star_a_retrospective)</sup> PARC后来的Cedar/Mesa环境包含了自己的所见即所得编辑器Tioga，它像Bravo一样支持多种字体和样式，因此连源代码都可以是富文本。<sup>[13](https://xeroxparcarchive.computerhistory.org/Xerox_PARC_source_code.html)</sup>

## Web创作中的所见即所得

HTML标准将创作工具分为两大类：基于结构或语义数据工作的工具，以及以所见即所得方式针对特定媒体进行编辑的工具。它补充说，所有创作工具，无论是否为所见即所得，都应尽最大努力使用户能够创建结构良好、语义丰富、媒体无关的内容。<sup>[4](https://html.spec.whatwg.org/infrastructure.html)</sup>

所见即所得编辑也出现在电子邮件客户端中，如[Microsoft Outlook](https://www.edgepedia.org/zh/microsoft-outlook)，它提供类似于Word的HTML格式；也出现在嵌入式应用编辑器中，带有用于加粗、斜体、对齐、链接、图像和表格的格式工具栏。<sup>[14](https://www.section508.gov/create/email-messages/)</sup><sup> • </sup><sup>[15](https://ttuhscep.edu/elpaso/oire/_documents/Xitracs%20Editor%20User%20Manual%202_10_2016.pdf)</sup>

**浏览器底层机制。** 基于Web的所见即所得编辑器在技术上构建难度大，底层浏览器API一直处于过渡之中。长期以来用于在 `contenteditable` 区域应用格式的 `document.execCommand()` 方法已被弃用：用户代理对其实现不一致或不完整，尽管它在没有可行替代方案的情况下仍保留一些有效用例，例如保留撤销缓冲区。<sup>[6](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand)</sup> W3C Web编辑工作组于2025年3月发布了ContentEditable的首个公开工作草案，归档了先前的提案，其中一些在EditContext API中得到了进一步定义——这是一个新API，允许作者更直接地参与文本输入过程。<sup>[16](https://www.w3.org/news/2025/first-public-working-draft-contenteditable/)</sup><sup> • </sup><sup>[7](https://www.w3.org/TR/edit-context/all/)</sup>

## 无障碍与语义标记

W3C的创作工具无障碍指南（ATAG）2.0于2015年作为W3C建议书发布，将所见即所得HTML编辑器列为其所涵盖的创作工具之一，同时涵盖内容管理系统、学习管理系统、文档转换器以及允许用户添加内容的网站（如博客、维基和社交网站）。<sup>[5](https://www.w3.org/WAI/standards-guidelines/atag/)</sup> ATAG术语表对该术语提出了一个注意事项：尽管“所见即所得”是普遍使用的标签，但由于用户代理和终端用户配置各不相同，终端用户实际上并不存在一种典型的体验。<sup>[17](https://www.w3.org/WAI/AU/ATAG20/)</sup> 该指南还区分了完整渲染和部分渲染——在部分渲染中，内容的某些方面被渲染而其他方面则没有，例如逐帧视频编辑器渲染视频的图形方面但不渲染时间方面。<sup>[17](https://www.w3.org/WAI/AU/ATAG20/)</sup>

视觉编辑与语义结构之间的张力是一个反复出现的主题。HTML标准期望所见即所得工具生成语义丰富、媒体无关的内容，这正是为了解决仅靠视觉格式化会丢失意义的风险。<sup>[4](https://html.spec.whatwg.org/infrastructure.html)</sup> 基于对213名研究人员的访谈以及对27份关于科学写作的文件的分析，该研究得出结论：在学术界，所见即所得和离线桌面工具仍然比基于文本的编辑器和在线编辑器更受青睐。<sup>[18](https://arxiv.org/abs/1804.07708)</sup>

## References

1. [What is a WYSIWYG Editor? CyberOptik Glossary](https://www.cyberoptik.net/glossary/wysiwyg-editor/)
2. [BRAVO text editor screen, CHM Revolution, Computer History Museum](https://www.computerhistory.org/revolution/input-output/14/347/1856)
3. [Xerox Alto source code, Computer History Museum archive](https://xeroxalto.computerhistory.org/xerox_alto_file_system_archive.html)
4. [HTML Standard, WHATWG](https://html.spec.whatwg.org/infrastructure.html)
5. [Authoring Tool Accessibility Guidelines (ATAG) Overview, W3C Web Accessibility Initiative](https://www.w3.org/WAI/standards-guidelines/atag/)
6. [Document: execCommand() method, MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand)
7. [EditContext API cover page, W3C](https://www.w3.org/TR/edit-context/all/)
8. [Xerox Office Systems Technology (OSD-R8203), November 1982, bitsavers](https://bitsavers.computerhistory.org/pdf/xerox/sdd/OSD-R8203_Xerox_Office_Systems_Technology_Nov82.pdf)
9. [Xerox Alto, CHM Revolution, Computer History Museum](https://www.computerhistory.org/revolution/input-output/14/347)
10. [The Beginnings of Word Processing: A Historical Account, Springer](https://link.springer.com/chapter/10.1007/978-3-031-36033-6_1)
11. [A Backup of Historical Proportions, Computer History Museum blog](https://computerhistory.org/blog/a-backup-of-historical-proportions/)
12. [The Xerox Star: a retrospective, ResearchGate](https://www.researchgate.net/publication/2953879_The_Xerox_Star_a_retrospective)
13. [Xerox PARC source code, Computer History Museum archive](https://xeroxparcarchive.computerhistory.org/Xerox_PARC_source_code.html)
14. [Accessible Email Messages, Section508.gov](https://www.section508.gov/create/email-messages/)
15. [Xitracs Editor User Manual, TTUHSC El Paso](https://ttuhscep.edu/elpaso/oire/_documents/Xitracs%20Editor%20User%20Manual%202_10_2016.pdf)
16. [First Public Working Draft: ContentEditable, W3C News, 25 March 2025](https://www.w3.org/news/2025/first-public-working-draft-contenteditable/)
17. [Authoring Tool Accessibility Guidelines (ATAG) 2.0, W3C](https://www.w3.org/WAI/AU/ATAG20/)
18. [A Survey of User Expectations and Tool Limitations in Collaborative Scientific Authoring and Reviewing, arXiv](https://arxiv.org/abs/1804.07708)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software engineering and development process › Software design and architecture › Titles Mu to Z

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/wysiwyg

English original: https://www.edgepedia.org/wysiwyg
