-
Notifications
You must be signed in to change notification settings - Fork 2
能否优化查看模式和预览模式 #31
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
Comments
那你改它的初始值好了,让它默认打开 1、调整 打开 zoom:{value:1},viewModeEnabled:!1 改成: zoom:{value:1},viewModeEnabled:!0 2、 打开 /* 查看模式下,隐藏【保存】、【刷新】按钮 */
div#root:has( .excalidraw.excalidraw-container.excalidraw--view-mode) ~ #refreshBtn {
display: none;
}
div#root:has( .excalidraw.excalidraw-container.excalidraw--view-mode) ~ #saveBtn{
display: none;
}
|
大佬,我用记事本修改试了一下。 |
不应该啊,我试了可以才发给你的。你挂件版本是V1.3.2吗?第一个你用搜索和替换,别手动删,手动删容易把搜索的内容一起删了。 |
查看模式下,隐藏左下、左上按钮的话,试试这个吧 .excalidraw.excalidraw--view-mode .Stack_vertical {
display: none;
} |
default.mp4 |
能否提供一下修改后的js文件我替换试试,我不清楚是不是记事本修改的问题,我不会编程,感谢。 |
只是改一下查看模式的初始值,不应该影响什么图层吧。我用的也是发布版本。你解压后替换试试吧。 |
修改完挂件记得清一下缓存或者重启一下笔记软件,让它加载修改后的版本 |
佬,可以了,应该是记事本的问题,我没有编程软件,用记事本修改的。太太太感谢啦。如果后续大佬有更新挂件的想法的话可以考虑默认查看模式和预览模式都是开启的,我觉得用户除了在绘图时,大部分情况都是用于查看的,也许默认开启查看模式和预览模式会比较好。再次感谢大佬开发,这个挂件很大程度上解决了思源笔记白板上的短板。 |
感谢大佬开发,请问能否设置默认开启预览模式和查看模式,每次打开文档都需要重新开启,比较麻烦。另外查看模式能否实现隐藏所有功能键(包括刷新,保存等等),这样比较纯粹,谢谢。
The text was updated successfully, but these errors were encountered: