Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么将预览页面提取出来呀,我想通过编辑内容展示到主页上 #942

Open
1 task
ruisen2020 opened this issue Oct 11, 2024 · 3 comments
Open
1 task

Comments

@ruisen2020
Copy link

Prerequisites

  • There isn't an existing issue that requests the same feature, to avoid duplicates.

Issue Type

Bug Report

Description of the Problem or Idea

怎么讲预览页面提取出来呀,我想通过编辑内容展示到主页上

Further Information

No response

Contributing

None

@ruisen2020 ruisen2020 added the 💻client client question label Oct 11, 2024
@ruisen2020 ruisen2020 changed the title [Client] [Client]怎么讲预览页面提取出来呀,我想通过编辑内容展示到主页上 Oct 11, 2024
@ruisen2020 ruisen2020 changed the title [Client]怎么讲预览页面提取出来呀,我想通过编辑内容展示到主页上 [Client]怎么将预览页面提取出来呀,我想通过编辑内容展示到主页上 Oct 11, 2024
@RSS1102 RSS1102 changed the title [Client]怎么将预览页面提取出来呀,我想通过编辑内容展示到主页上 怎么将预览页面提取出来呀,我想通过编辑内容展示到主页上 Oct 11, 2024
@RSS1102 RSS1102 added 🔎question and removed 💻client client question labels Oct 11, 2024
@RSS1102
Copy link
Collaborator

RSS1102 commented Oct 11, 2024

@RSS1102
Copy link
Collaborator

RSS1102 commented Oct 11, 2024

当然你也可以直接将其 编辑器设置为无toolbar 的 纯预览页面也可以。

@sunsonliu
Copy link
Collaborator

有两个方案

  • 方案1,用Cherry的纯预览模式
    效果见这里
    demo对应代码在这里
  • 方案2, 用Cherry的API获取html内容
    api为:cherryObject.getHtml()。获取html后,把html展示到主页上
    不过这种方式需要自行实现样式或者单独引入Cherry的样式文件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants