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

[Bug Report] 当switchModel 为 previewOnly时, "enablePreviewerBubble" 的状态不对 #1030

Open
3 tasks
jackrebel opened this issue Jan 20, 2025 · 1 comment
Labels
📃documentation Improvements or additions to documentation not a bug This is not a bug

Comments

@jackrebel
Copy link

Prerequisites

Version

v0.8.58

Reproduction Link

No response

Describe the Bug

 if (result.isRead) {
        window.cherry.switchModel('previewOnly');
      }

当设置为previewOnly时, 如何同时设置"enablePreviewerBubble"为false? 它应该是只读不能再被编辑才对.

  previewer: {
    dom: false,
    //className: 'cherry-markdown', 
    enablePreviewerBubble: true,
    floatWhenClosePreviewer: true
  },

System Information

Contributing

None

@jackrebel jackrebel added pending-no-confirmed The direction of this issue has not yet been determined. 🐞bug Something isn't working labels Jan 20, 2025
@sunsonliu
Copy link
Collaborator

可以用cherry.previewer.options.enablePreviewerBubble = false来关掉预览区域的所见即所得编辑能力哈。

至于为什么设置成“纯预览模式”还是可以编辑预览区内容,大概就是设计如此,具体可以见这个issue里的讨论哈:#765

@RSS1102 RSS1102 added not a bug This is not a bug 📃documentation Improvements or additions to documentation and removed 🐞bug Something isn't working pending-no-confirmed The direction of this issue has not yet been determined. labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📃documentation Improvements or additions to documentation not a bug This is not a bug
Projects
None yet
Development

No branches or pull requests

3 participants