generated from dellevin/template
优化windows笔记功能
This commit is contained in:
12
assets/vditor/dist/vditor_editor.html
vendored
12
assets/vditor/dist/vditor_editor.html
vendored
@@ -13,6 +13,12 @@
|
||||
.vditor-ir__marker--cursor,
|
||||
.vditor-content,
|
||||
.vditor-reset { background: transparent !important; }
|
||||
/* 所有滚动条统一:极细极淡 */
|
||||
*::-webkit-scrollbar { width: 4px; height: 4px; }
|
||||
*::-webkit-scrollbar-track { background: transparent; }
|
||||
*::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.06); border-radius: 2px; }
|
||||
*::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }
|
||||
*::-webkit-scrollbar-corner { background: transparent; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -72,6 +78,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
function setBgColor(color) {
|
||||
document.body.style.backgroundColor = color;
|
||||
const el = document.querySelector('.vditor-ir') || document.querySelector('.vditor-wysiwyg');
|
||||
if (el) el.style.backgroundColor = color;
|
||||
}
|
||||
|
||||
function insertValue(text) {
|
||||
if (vditor) vditor.insertValue(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user