ok-admin/lib/wangEditor/docs/usage/05-other/01-全屏-预览-查看源码.md

11 lines
538 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 全屏 & 预览 & 查看源码
## 全屏
虽然 wangEditor 没有内置全屏功能但是你可以通过简单的代码来搞定作者已经做了一个demo来示范。通过运行 demo文档一开始就介绍了即可看到该示例页面直接查看页面源代码即可。
## 预览 & 查看源码
如果需要预览和查看源码的功能,也需要跟全屏功能一样,自己定义按钮。点击按钮时通过`editor.txt.html()`获取编辑器内容,然后自定义实现预览和查看源码功能。