cherry-markdown
cherry-markdown copied to clipboard
[Bug Report] 当switchModel 为 previewOnly时, "enablePreviewerBubble" 的状态不对
Prerequisites
-
[ ] There isn't an existing issue that reports the same bug to avoid duplicates.
-
[ ] The provided information offers a minimal reproducible example of the bug, (Why create a Minimal).
-
[ ] For Q&A, please open a GitHub Discussion instead.
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
可以用cherry.previewer.options.enablePreviewerBubble = false来关掉预览区域的所见即所得编辑能力哈。
至于为什么设置成“纯预览模式”还是可以编辑预览区内容,大概就是设计如此,具体可以见这个issue里的讨论哈:https://github.com/Tencent/cherry-markdown/issues/765