mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-10 16:52:49 +00:00
feat
This commit is contained in:
parent
2a66dff0e0
commit
d2d056abd5
@ -86,6 +86,13 @@ export default function CodeEditor() {
|
||||
saveAs(file);
|
||||
}, [htmlContent]);
|
||||
|
||||
const downloadcss = useCallback(() => {
|
||||
const file = new File([htmlContent], `${Date.now()}.html`, {
|
||||
type: "text/css;charset=utf-8",
|
||||
});
|
||||
saveAs(file);
|
||||
}, [htmlContent]);
|
||||
|
||||
// 快捷键保存
|
||||
useHotkeys(
|
||||
"ctrl+s",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user